The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: bunnies on November 11, 2010, 12:01:19 PM

Title: [VX] Timer Freezes Game
Post by: bunnies on November 11, 2010, 12:01:19 PM
I put this timer in a common event to control the seconds in my day/night event system. However, my game just freezes when it runs.

Set Variable1 = Play Time
Loop
  Set Variable2 = Play Time
  Set Variable2 -= Variable1
  If Variable2 = 60 Then
    Break Loop
  End Branch
Repeat Above

What I did was set Variable1 to the current game time. Then it sets Variable2 to the current game time and then subracts variable1 from variable2. It keeps doing that until the difference between the two variables is 60. Help is appreciated. Oh and I didn't use the wait command because 1. it goes only up to 999 frames per wait command and 2. the wait command doesn't work well with switching maps. Thanks.
Title: Re: Timer Freezes Game
Post by: bunnies on November 11, 2010, 12:35:27 PM
Nevermind. I figured it out. DOH