Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if room_get_name(room) == "room_Stage1"
- fightTimer -= 1 / 1000000 * delta_time; // this is the formula for reducing a timer with real time per frame.
- //This will reduce it by one second per second, but little by little each frame.
- // if the timer reaches zero, reset it and go back to the character select screen.
- if fightTimer <= 0 {
- fightTimer = fightReset; //When I at first did NOT reset the timer, the game froze for some reason. Might have gotten stuck in a loop or something.
- room_goto(room_Draw);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement