NPCs moving on top of events

I am facing a different problem with NPC movement. In order to have an NPC say, behind a chair or sofa, if the chair is at the bottom, facing up, I have been creating parallel events with the image of the chair, set it to be above character, and set the event location where I want it, so that it looks like the NPC is sitting on them (although you can barely see the NPCs). The issue is, when I try to set a movement route for an NPC that is sitting down that way, I can't make them come back to where they started because they just stand in front of the parallel event location and can't continue. Any way to fix this?

1662066843987.png


You can see the paralel events on top of the bottom wall. On the left side, I have an event with the image of the sofa set to the location of where the NPC event is. That works fine, the NPC appears behind the couch in the game, but if I make the NPC go get a soda from the vending machine and come back to the couch, he will just stand in front of the couch and stop moving.

1662067089502.png


Thank you in advance.
What about activating "Through ON" in the move route?

Events can move out of an event if they are stuck in the same place, but can not again enter into the same spot unless Through is on, in which case they can essentially phase through everything. Turn it on when the event enters that space and then turn it of again afterwards.
aside from the tip above, parallel events cost a lot of processing powwer if done wrong.
and from what you describe it might be that you are creating a lot of lag for your game, so you should check for other ways to do things.
Moved to: MV Support

Please put your "help me" questions into the support forum for the engine you're using.
I have been creating parallel events with the image of the chair
Andar makes a very good point. To be more specific - why are these parallel? What event commands are they running? It seems to me that a chair would just be a chair, not doing anything.
As far as I can tell, the common event moves the "Chair" events to the places where there are chairs so it looks like if you made the tile be above player. Not sure why they wouldn't just do that instead and solve any collision issues with invisible with "Same as player" event or something similar.
Just a though but... Wouldn't it be easier to make the chair simple tiles instead of events? Besides that, what's the real need of this Parallel Event on your map? From what I understand, it's possible to do that without it. 😉
aside from the tip above, parallel events cost a lot of processing powwer if done wrong.
and from what you describe it might be that you are creating a lot of lag for your game, so you should check for other ways to do things.
Andar makes a very good point. To be more specific - why are these parallel? What event commands are they running? It seems to me that a chair would just be a chair, not doing anything.

The reason I did that was because I couldnt find any other way that the chair stays above the player. The event command is just "set this event location" to where the chair needs to be in the game. I ran them as parallel because afaik, if they are not parallel, then I need to either step on where I created the event or go and press action button for them to run the "set this event location" command. I want the chair to be visible as soon as the tile enters the player sight.

It does indeed seem too much stuff for just a visual thing, but is there any other way? I dont want to create the event on the exact spot because I may want to create an NPC event sitting on the chair for example and I cant have them on the same tile.
Just a though but... Wouldn't it be easier to make the chair simple tiles instead of events? Besides that, what's the real need of this Parallel Event on your map? From what I understand, it's possible to do that without it. 😉

Simple tile is ok if the chair is facing down or sideways. But when the chair is facing up, the player just walks above the chair so I cant create the illusion of them being sitting down. Is there any way to change a particular tile to be visually above the player?
I'm going to suggest you do a few event tutorials to help yourself learn both basics and intricacies. You should be able to find plenty on YouTube.

The reason I did that was because I couldnt find any other way that the chair stays above the player.
If I make an event, leave it as the normal Trigger: Action Button, set a graphic, and specify that its priority is Above Player and just leave it on the map...I can walk under it just fine. 🙄

The event command is just "set this event location" to where the chair needs to be in the game.
The basics that I was talking about above: autorun and parallel events run themselves continuously looping every frame for as long as they're there. That's 60 times a second. That's why Andar said that making them unnecessarily will lag your game, because they're sitting there doing this code again and again for no reason.

If you did need to do this (and from my little experiment above, I don't understand why), the correct way to go about it would be to have one page of the event that is autorun or parallel, do the Set Event Location, then turn on a self switch. The second page of the event has the same graphic but no autorun/parallel, no code.

It does indeed seem too much stuff for just a visual thing, but is there any other way? I dont want to create the event on the exact spot because I may want to create an NPC event sitting on the chair for example and I cant have them on the same tile.
1 - Do what I just described. Give one of them one autorun/parallel command to transfer, then leave it.

2 - Why does the chair need to be an event? Doesn't it exist as an image on your tilesheet? Just give that image Above Player passability (the star) in your tileset editor and draw it on your map normally.

Have you done a few tutorials on MV? The one included in the editor, and a couple from these forums or YouTube? Between the event things and the tileset editor, I feel like those should've been covered.
I'm going to suggest you do a few event tutorials to help yourself learn both basics and intricacies. You should be able to find plenty on YouTube.


If I make an event, leave it as the normal Trigger: Action Button, set a graphic, and specify that its priority is Above Player and just leave it on the map...I can walk under it just fine. 🙄


The basics that I was talking about above: autorun and parallel events run themselves continuously looping every frame for as long as they're there. That's 60 times a second. That's why Andar said that making them unnecessarily will lag your game, because they're sitting there doing this code again and again for no reason.

If you did need to do this (and from my little experiment above, I don't understand why), the correct way to go about it would be to have one page of the event that is autorun or parallel, do the Set Event Location, then turn on a self switch. The second page of the event has the same graphic but no autorun/parallel, no code.


1 - Do what I just described. Give one of them one autorun/parallel command to transfer, then leave it.

2 - Why does the chair need to be an event? Doesn't it exist as an image on your tilesheet? Just give that image Above Player passability (the star) in your tileset editor and draw it on your map normally.

Have you done a few tutorials on MV? The one included in the editor, and a couple from these forums or YouTube? Between the event things and the tileset editor, I feel like those should've been covered.
I haven’t done the in game tutorials but I have been watching several tutorials on YT.

The only time the ones I saw mentioned tile set editor they never mentioned the star, only passable/impassable, so I didn’t know about that option.

Also I know enough about self switches but, I didn’t think that would work because if SS was switched on and the 2nd event page just had the image and no commands, then the set event location would stop being triggered and the chair would disappear and go to the event tile. But I will test that out of curiosity.

The tileset editor is the way to go on this one, I deleted all the events and just set any chairs sofas etc that are facing up to be below player.

Thanks for your help. I will be sure to do all in game tutorials and keep watching YT ones.
Paulifisk, You can achieve this using two separate tiles. Below for collision, above for the effect.

If you want to take a look at events tutorials, I have one for free (on my signature project) by chance.
The only time the ones I saw mentioned tile set editor they never mentioned the star, only passable/impassable, so I didn’t know about that option.
that is why we always suggest the ingame tutorials: they show everything, but videos are NEVER complete. You simply can't have enough hours of videos to mention every detail of such a complex program.
even with written or programmed tutorials they are often missing things, which is why I suggested in my starting point tutorial to always take a week extra just to explore the program and click on every button in a scrap project where you can't damage anything.

But I will test that out of curiosity.
you are both right. @ATT_Turan s method of moving the event once is the better one (your continuous set location sixty times a second costs a lot of computer reserves), but you are also right that on reentering the map the self-switch would already be set and prevent the chair from being moved again.

that is why you need to do two things different.
first, as this is only needed for the case of a later event being eventually added, do not do it as default. Place the chairs in the correct position directly.
instead you need to move the NPC by set event location if or when you decide it is needed.

second, the move has to be done by a DIFFERENT event.
you make one single parallel process on the map that check and changes the location for every event that needs to be at a different position, and then erase event so that this does not repeat.

because of the erase event it cannot be one of the events that stay at the new position, and this way has two more advantages: not only repeats it automatically on map reload, but you can also have the event check for different positions at different times in the story, changing the map based on a story tick counter that allows the map to be used multiple times by switching out different events on it.

Original thread: https://forums.rpgmakerweb.com/threads/npcs-moving-on-top-of-events.151003/