Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

RMVX Control Timer problem/ bug?

I'm having trouble using this.  I can get a timer going through a parallel process event, but there's no way I can check when a time runs out. The conditional branch always fails -- nothing happens when the timer runs out.

I tried putting the conditional branch in both the same parallel event and in a different event.  Both doesn't work.  Not sure what I'm doing wrong.  The game freezes if I try to put it in autorun.  The timer only ticks once if I don't set a self terminating event. (Set self-control A = on, etc)

Can't find the helpfile on Control Timer.

Is it because when I testing, I set the player start position on the same map as the timer?
 
So I have a parallel event that starts the timer as soon as the the player enters the map:

(pseudo code because I can't copy event code to clipboard)
Code:
Control Timer: Startup (10sec)
Control Self-Switch A = On

The self switch goes to page 2 which is an empty event page.  When I take out the self-switch-page-2 thing, the timer stops at 9 seconds. If I set the event to autorun, the game freezes.

Elsewhere, another event needs to determine the time and act accordingly to the timer.  The event is activated via player touch.
Code:
Conditional Branch: Timer 0sec or More
   #do stuff
Else
   #too late

For the conditional branch I tried variation of "Timer 10sec or More", "Timer 0sec or Less", "Timer 10sec or Less" and even swapping places of "#do stuff" with "#too late".  It seems like VX is not keeping track of the timer; the control timer only displays the time.

If someone could post a working example, that would be great also.
 
That's odd; in theory, it should work fine. I can't see any problem in the command, unless maybe that you're standing on the Player Touch event before the timer starts?

Try changing the Player Touch event to a Parallel Processing, then use variables and check if the player's coordinates are at (x,y) and then put in the timer conditional branch. If that doesn't work, then try uploading a demo?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top