Advertisement
Guest User

scr_FightControl

a guest
Oct 14th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if room_get_name(room) == "room_Stage1"
  2.     fightTimer -= 1 / 1000000 * delta_time; // this is the formula for reducing a timer with real time per frame.
  3.                                             //This will reduce it by one second per second, but little by little each frame.
  4.  
  5. // if the timer reaches zero, reset it and go back to the character select screen.
  6. if fightTimer <= 0 {
  7.     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.
  8.     room_goto(room_Draw);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement