This is weird, just a little confused as timers aren't that complicated but for some reason it keeps freezing my game? It just goes one second and my entire game has been frozen. Never had this issue before.
Timer Issue
RPG Maker MV SupportWhen you're posting screenshots, please don't crop them, show the whole screen. Events often have errors in their settings, not the actual event commands.
In your case, I would assume it's the loop. You're not doing anything to make the event wait for those 30 seconds to be done, so it's just constantly looping and resetting the timer 60 times a second.
In your case, I would assume it's the loop. You're not doing anything to make the event wait for those 30 seconds to be done, so it's just constantly looping and resetting the timer 60 times a second.
What can I do to make it pass the time?
Have you tried not putting it in a loop? Also make sure to switch off the autorun event after it is done. Otherwise that will also loop.
first thing, autoruns loop automatically, the same way as your loop command. and that timer command just starts the timer but does nothing with it at all, so of course your game freeezes in the loop.
second, to use a timer you need to commands - one to start it and one to check it in a conditional branch.
the start command must never be in any loop as that just restarts the timer. the time check is the one that has to be in the loop, and it needs to exist the loop when the time is up.
I don't have time for a full example right now, please try it again with two events and the hints above and post the results for us to check.
second, to use a timer you need to commands - one to start it and one to check it in a conditional branch.
the start command must never be in any loop as that just restarts the timer. the time check is the one that has to be in the loop, and it needs to exist the loop when the time is up.
I don't have time for a full example right now, please try it again with two events and the hints above and post the results for us to check.
I'm confused about what you're trying to accomplish. Do you want to start this event and it continuously gives you gold every 5 seconds (which is different from the 30 seconds in your first post) forever? For as long as you're on the map? Something else?
There's a Wait command in the list of event commands.
Yes. And the issue with the wait command is I want to be able to walk around while it's happening
The timer is working now but I am not receiving gold.
to walk with the player, you need a parallel process.
but to make a timer correctly and do what you exactly want to do,
is best with a "Variable Timer", that is to gain more control than
the basic in game.
but to make a timer correctly and do what you exactly want to do,
is best with a "Variable Timer", that is to gain more control than
the basic in game.
According to the forum rules, we're not supposed to double post. If you need to add something to your previous post, there's an Edit button right at the bottom.
Both of them continuously loop until they're stopped by something. Autorun freezes player input, Parallel does not.
You just set the timer to 5 seconds with an event command. On the very next line of that event, which will be looked at 0 seconds later, you ask if the timer is now 0. It can't be.
It doesn't sound like you need a timer at all, just set a Wait command for 5 seconds' worth of frames, then add gold. But, then, I still haven't gotten a clear description of exactly what you're trying to accomplish.
That's not a helpful answer, I asked you three different things.
That's why you use a parallel event. It sounds like you should do some guided tutorials on events, like whatever is included in MV and you can find several on YouTube. You need to understand how Autorun and Parallel events work and what the difference between the two is.
Both of them continuously loop until they're stopped by something. Autorun freezes player input, Parallel does not.
Because the condition is logically false.
You just set the timer to 5 seconds with an event command. On the very next line of that event, which will be looked at 0 seconds later, you ask if the timer is now 0. It can't be.
It doesn't sound like you need a timer at all, just set a Wait command for 5 seconds' worth of frames, then add gold. But, then, I still haven't gotten a clear description of exactly what you're trying to accomplish.
Ok it works now. Thank you
Original thread: https://forums.rpgmakerweb.com/threads/timer-issue.150795/