goodyy's Forum Posts

  • 1 posts
  • Hey everyone. I'm making a game for one of my classes and I have a points system where you collect things from one layout and they carry on into the next. I figured that part out, but I'm having trouble making the points revert to the level 1 value after the player dies. For example, if the player had 80 points in level 1 and moved on to level 2 and got 20 more points but died, I want the points to go back to 80 (or however many they collected.) Currently, it either goes to 0 or to a negative number. My global variable is set to 0, and 20 gets added each time they collect something. I'm wondering if my code is incorrect.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 1 posts