Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VX] Timer Freezes Game

Started by bunnies, November 11, 2010, 12:01:19 PM

0 Members and 1 Guest are viewing this topic.

bunnies

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.

bunnies

Nevermind. I figured it out. DOH