The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: doggen on January 14, 2006, 04:14:32 PM

Title: Timer Problem
Post by: doggen on January 14, 2006, 04:14:32 PM
I didn't know exactly were to put this, but I thought that it would
work here.

Anyway, here's my problem:

In one part of my game, I'm gonna use the timer, so that when the time goes out, a switch will be turned off.

When I tried this however, I used the conditional branch, and put it like:

Conditial Branch Timer is Below 0 Minutes And 1 Seconds(I also tried 0 and 2 seconds)
Switch: [0001:Switch1) = OFF

But when I tested it, nothing happened :cry:
Is there anyone out there that know what the problem is?
If so, could you please tell me?

Thanks in advance.
Title: Timer Problem
Post by: Big Billy on January 15, 2006, 02:24:24 AM
Without actually seeing the problem it's hard to say.

Have you made the event seperate? If not try it. And another possible thing could be activating the event. Have you selected parralell process?
Title: Timer Problem
Post by: doggen on January 15, 2006, 08:45:54 AM
Well, to be more specific, it's supposed to be like this:

You press a button, or something like that, and then
the switch [0001:SwitchA], will be turned on.
The switch will make another button appear, and then you have this time limit, and if you don't press the second button before the time goes out,
the second button will disappear, and you'll have to start over from the beginning. Got it? :)
Title: Timer Problem
Post by: frabbage on January 24, 2006, 03:27:18 PM
im having the same problem. is it possible to do this?
Title: Timer Problem
Post by: mark on January 25, 2006, 04:46:22 PM
Ok,Maybe you should try it in a diferent way.I have a timer operation in my project and it works fine,so im going to try and explain it with your events.
So you have a button,and when you press that button,another button appears and you only have a certain time to press it or it dissapears right?
Well,to do this,you will need 3 events.The first event is you first button.
Do it like this:
 Event 01(First Button):
              Timer (operation start x minutes and x seconds)
               Switch 01(second button)=ON
Now you have the first button,that starts the timer when you press it and also turns on switch 01 wich is the second button.

 Event 02(second Button):PRECONDITION>>Switch 01(second button) is ON
              Message:You unlocked the switch(just do whatever you want to do here when the hero presses the second button in time)

 Event 03(No Graphic):
              Conditional Branch:Timer Below x minutes and x seconds
                  Switch 01(second button)=OFF
              Else
                <>
And thats it!Hope i could help!