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,751
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,338
Reaction score
8,074
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,751
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,751
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,751
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,839
Reaction score
14,502
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 Profile Posts

MythicRuss wrote on gothicvoid's profile.
hi, i was looking thru ur awesome stuff, and was looking around the internet, how in the heckin heck do i get the hiddendoors to open? im addng them to the doors event but they just appear as solid walls, btw am total noob lol
currently working on some template sprites and tweaking the walk cycle :)
Lunee.jpg
Early try to draw our Demon Countess, who destroyed her own soul leaving just an empty shell of a body - until our heroine unwillingly takes possession of it, every time she falls asleep.
(I know it’s a premade face from the Dark Fantasy Set, but I spent so much time with her, that I can’t bring myself to change the sprite anymore xD)
I finished setting up my new desk and apparently she thinks this is where she goes now.

20210411_082331.jpg

Forum statistics

Threads
110,305
Messages
1,052,144
Members
143,335
Latest member
claanxy
Top