playMaker

Author Topic: Help Needed | Reset Level and All Variables  (Read 1200 times)

cokashi232

  • Playmaker Newbie
  • *
  • Posts: 1
Help Needed | Reset Level and All Variables
« on: March 29, 2022, 07:04:40 AM »
So my game's logic is whenever you get caught by the enemy, the whole game will start and you will lose your progress. The issue is that I managed to get the logic of restarting the level right. But the issue with resetting the progress is not yet solved. I need to reset the "Global Variable" of the Points Gathered.

I really need help in this issue please.

Thank you in advance.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Help Needed | Reset Level and All Variables
« Reply #1 on: March 29, 2022, 03:30:48 PM »
Hi.
Best way is on start to use Set Int/Float/others and set to a default value.

andyandyandy

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 63
Re: Help Needed | Reset Level and All Variables
« Reply #2 on: April 01, 2022, 08:24:29 PM »
what djaydino said. Is best you have a state that washes or reset all value at the beginning of the state, or end of the fsm.