In this case, the game attribute is player level.
snippet
code in preview code in design mode:
getGameAttribute("player level")
code without import com.stencyl.behavior.Script.*;
Script.getGameAttribute("player level")
computational shortcut level 1:
Engine.engine.getGameAttribute("player_level")
computational shortcut level 2
Engine.engine.gameAttributes.get("player_level")
No comments:
Post a Comment