Help on "Bullets Left " resetting on new scene

BillyEvsBillyEvs Member, PRO Posts: 14
As the title says, i am kinda new to all of this and apologies if there is another thread about it, but i cannot find it.

Basically its a level based game, where you can purchase more bullets at the end of the level to take through to the next level (scene) but it just seems to reset back to the original amount.

Any help is much appreciated.

Cheers

Comments

  • yasoofxyasoofx Member Posts: 332
    you need to use save attribute and load attribute
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2014
    You'll need to make a game attribute for the number of bullets, for example an integer called game.bulletCount. Game attributes do not ever reset unless you do a change attribute to change their value.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.