Alright so I'm trying to put a timer in an area where if you hang around too long, you die, but I don't want the time visible in the corner.
However, the next part also has a similar event with a timer, but I need it visible there for suspense.
Everything I've found makes the timer invisible indefinitely and was wondering if there's some sort of script or call I could use for this one part.
Thank you.
Wait commands and a variable in a paralell process perhaps?
Check this out. You can make an invisible timer by using the a variable combined with a wait command inside of a parallel process.
Something like this:
>Set Variable#1 to 30
and then in the parallel process:
>Wait command: 40 frames
>Subtract 1 from Var#1
Effectively you make stuff happen when the "timer" [Variable] hits 0. You can make it as fast or as slow as you want. And since it doesn't use the real timer, it's invisible.
Here, I'll show you.
Edit:
Elsewhere you would set the Timer Variable to be above 1. This triggers the event. Every 20 frames, it lowers the variable by 1 unless the variable is reached zero.
Oh, snap, I didn't realize this was for Ace.
When you make a conditional branch, setting the condition IS the "if". The conditional branch checks the condition. In this case, choose the variable you set for the timer, and then set the number you want to check it to.
The symbol dictates the math you want to check.
= checks if the variable is equal to the number you set. > checks if the variable is LARGER THAN the number you set (< checks for SMALLER THAN), etc.
Don't use a loop within a parallel process event. Parallel processes (and autoruns) loop by default.
I didn't say not to set it to parallel process. I said not to use a loop within a parallel process, because they already loop.
You have your condition around the wrong way. You're comparing it for <= 0, but it's never going to get there, because you're never reducing it. Change it to > 0.
You can get rid of the loop & break loop statements, as the parallel process event will already loop. Instead of the break loop, turn on a switch, or go to the gameover screen.
You almost had it right. Event 92 with the loop is what Shaz was talking about. take the loop out and change the condition to > 0
Don't give up on figuring this out. I know it seems complicated but once you start getting the hang of stuff like this, you can do some really cool things with eventing in RPG Maker.
everytime i try to do this, the moment the switch gets turned on it just immediately goes to the game over scene without a timer at all :/
im a visual learner sadly, so i doubt i will be able to figure this out with text alone.
thank you guys anyway though, sorry.