frostyelk is right!
another advice will be to make a Constant to store this initial value.
it will save you later from remembering when you store what value and probably from logic mistakes.
- Code: Select all
constant INIT_TIMER = 20;
var Timer = 0;
Timer = INIT_TIMER; //reseting your value to initial
now you need just to change INIT_TIMER at the top of your event sheet.
very useful if you use this reset in several parts of your game.
or you will need to search and change values in all this places.