Wait event command - make it affect one event not all

Status
Not open for further replies.

Vetmora

Villager
Member
Joined
Aug 15, 2017
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMV
Having trouble trying to figure out how to make an event wait instead of all events when using the wait command. I have an event that when a variable = 2 then it waits 200 frames before switching the variable to 0 where it can then move again. However the wait affects the player as well as this event.

Is there some way to do this? Any help much appreciated!
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,752
Reaction score
14,497
First Language
English
Primarily Uses
RMVXA
Wait will do that if you have the event set to autorun, player touch, action button or event touch, as in all 4 cases the event is the only active event, and nothing else can run. You will have to set it to parallel process to do what you describe.

Edit: Though, if you just want the sprite to not be able to move, a set move route (that event), wait 200 will also do it.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,339
Reaction score
8,076
First Language
German
Primarily Uses
RMMV
The wait command automatically affects only the event where it is given.
If you have an effect else where then the event with the wait is done in a wrong way, because a wait can not affect anything else.


Please show a screenshot of the event, then we can check why it affects the other parts.
 

Vetmora

Villager
Member
Joined
Aug 15, 2017
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMV
It still seems to affect the player no matter the trigger.
Capture.PNG
 
Last edited:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,752
Reaction score
14,497
First Language
English
Primarily Uses
RMVXA
If you use parallel process and use the regular wait command (NOT the one in set move route), it can't affect the player, as by definition, parallel process run in the background.

Again, post a picture of the event so we can see it.
 

Vetmora

Villager
Member
Joined
Aug 15, 2017
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMV
Hi, I have uploaded an image to my last post. It's not showing up for you?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,752
Reaction score
14,497
First Language
English
Primarily Uses
RMVXA
Nope, it just says IMG. You have to click the Image icon and then post the link there, else it will not take.
 

bhindi1224

NOT Indian Okra
Veteran
Joined
Sep 19, 2017
Messages
295
Reaction score
168
First Language
English
Primarily Uses
RMMV
I've noticed a lot of problems with images lately. Someone else made a post about it as well. I can see the image perfectly fine.

Here is a repost of the img.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,752
Reaction score
14,497
First Language
English
Primarily Uses
RMVXA
Well, that should do absolutely nothing, as all it does is do nothing for 200 frames, then change the variable. However, if you have a move route on the character, it will still move.

However, I would recommend *never* use a parallel process on a character sprite. That does nothing good, and usually lags your game at worst. If you just want that sprite to stand still for 200 seconds, instead add a wait 200 move route to it, and it should stop for 200 frames, then resume where it was.
 

sibba

Villager
Member
Joined
Jan 7, 2021
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMZ
I want to make a monster that chases me wait and then if it touches me I die but whenI make it wait it makes me wait too
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,849
Reaction score
14,505
First Language
English
Primarily Uses
RMMV

sibba, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.



Your question is not the same as the OP's so you are also hijacking. Please take a moment to get to know the forum rules.

Please make a new thread to ask your own question.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Moving day is on May 12! A month from today! I'm finally getting my own apartment!
I made the logo and title screen for my game (Still rough but at least it's got a design now)
Eyy1s2gXIAMzfFN
Eyy1s2hXMAEmiRA
BCj
Whelp, it's been a while. Had another retina surgery on april 1st on my left eye. Well, 4 time's the charm, right? *recovery mode on*
The next JABS update will include ally AI and an aggro system.

Question:
What would YOU expect to happen if you had four+ party members in an ABS, all fighting either together or separately or a mix of the two, and the player hits "swap leader" button?
It currently pulls all followers to the player's location, removes all aggro towards enemies, and swaps them.
Time to wear a new face again...

Should keep things interesting huh? @EpicFILE :p

Forum statistics

Threads
110,329
Messages
1,052,401
Members
143,374
Latest member
telecrayon
Top