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,647
Reaction score
14,388
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,128
Reaction score
8,002
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,647
Reaction score
14,388
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,647
Reaction score
14,388
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,647
Reaction score
14,388
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,252
Reaction score
14,261
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

I know it looks more like a apple but...its a cherry, his name is: Cherry Knight
i just started uploading some of my selfmade Pixel Art on DA,
visit me there if you are interrested^^
Im sorry but..I Want to play a game.
Anyone here is familiar with the US Law ? I'm working on a game idea at the moment and I have several questions on my mind :p

Forum statistics

Threads
109,108
Messages
1,042,153
Members
141,603
Latest member
MarkStudios
Top