Forum Discussion
GaryKenyon
9 years agoCommunity Member
SL3 Javascript GetPlayer() function not defined in HTML5 output
Hi forum.
I created a game a while back for SL2, my external JS file gets and sets a bunch of Storyline variables using GetPlayer, SetVar and GetVar.
With the release of SL3, I have published th...
GaryKenyon
9 years agoCommunity Member
Running GetPlayer(), well after the course has finished loading, appears to work. This seems to be an issue with the way that the HTML5 output runs its JS files.
Another thing to note, SL3 now uses Booleans correctly. SL2 would use strings for bools, this means that when you grab the variable using js and check whether it's true or false, you would need to use "true" or "false". No longer in SL3.
Little things like the above should be shared with the community, otherwise we spend our already limited time trying to fix things that we shouldn't have to.
Related Content
- 6 months ago