Question about attributes.

mattsgames21

  • Posts: 43
Hi Stenclyers,

I am creating currency for my game (i.e, coins to collect).

My question is if I set the attributes to increment when a coin is collected, and add a block for saving the game, is there anything more that is needed to make sure that the player's currency will remain collected and reflected accurately when playing, quitting and playing the game again?

Thanks,

Luyren

  • *
  • Posts: 2645
If your attribute is purple, meaning it is a game attribute, then it can be saved and loaded between game sessions. Game Attributes also persist through scene transitions.
Game Attributes: http://www.stencyl.com/help/view/game-attributes/
Saving: http://www.stencyl.com/help/view/saving-and-loading-games/
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

mattsgames21

  • Posts: 43
That's what I figured but wanted to verify. Thank you Luyren!