Help with common event

Beliel

Warper
Member
Joined
Sep 8, 2016
Messages
4
Reaction score
0
First Language
English
Primarily Uses
So I'm trying to do a small hide and seek mini-game within my game but I for whatever reason cannot figure out the issue I'm having. The common event that I have set up starts fantastically, the problem is when the timer that I have set reaches zero... it just stays at 0. I have a condition branch set up so that if the timer < 0.01 then the next common event is to kick in, stop the timer, and try again. WTF am I doing wrong?! Please help, I'm going insane... D:<


This is the first common event to start


HS fail.png


And this is what it is supposed to do when the timer reaches zero and the hiders have not been found.


HS fail2.png
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
you misunderstood how the conditional branches work.


They check the status in the frame (time unit) they're called, and then continue.


You start the timer with a 20 second time, and when the conditional branch comes the timer is still in the first frame of the first second, so the condition is wrong and the other common event is not called. And then your common event ends - twenty seconds later the time is up, but there is no common event any longer that checks that time.


And exit event processing at the end does absolutely nothing here - the event ends anyway, no need to exit it.


I suggest you follow the link to the starting point in my signature. I linked a lot of important tutorials there, and you should at least work though the ones for eventing. That is because the timer needs either parallel processes (which are difficult for people who haven't handled them before) or the timer conditional branch needs to be checked by a different event than the one starting the timer, because there is no time passing during a single event.


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
 
Last edited by a moderator:

Dad3353

Veteran
Veteran
Joined
Mar 9, 2016
Messages
421
Reaction score
110
First Language
English
Primarily Uses
@Beliel...


You need a structure such as this for a Timer...


◆Comment:Let Caller run for 10 seconds...
◆Control Timer:Start, 0 min 10 sec
◆Label:Countdown



◆Comment:Test the Timer...
◆If:Timer ≤ 0 min 0 sec
  ◆Jump to Label:End_Chase
  ◆
:End



◆Comment:Do what happens whilst the Timer is still running...


...


...


◆Comment:Loop back to test the Timer again...
◆Jump to Label:Countdown
◆Label:End_Chase



◆Comment:Do whatever happens at Time-out...


...


...


Modify, of course, to your particular needs, but that's the sequence needed.


The recommendation to work through the tutorials is, of course, valid. They're the quickest way to proficiency.


Hope this helps.
 
Last edited by a moderator:

Beliel

Warper
Member
Joined
Sep 8, 2016
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Im semi-familiar with parallel events but I didn't know all that, thank you so much! Worked like a charm! You both are officially my heros for the day  :D


P.S. Sorry for posting in the wrong area, won't happen again.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top