NPC Random Following/Jumping Help

● ARCHIVED · READ-ONLY
Started by Strymc 3 posts View original ↗
  1. I feel like there should be right way to solve this, but I either cannot find the right information online, or am just a fool.

    I have an NPC that is semi-following the player around. The NPC will stay near the player, but mostly do its own thing. I use Region ID's to define where the player is, and have the NPC event perform specific actions based on what region the player is in.

    Like Jumping.

    I have two questions.

    1. I want to have the NPC jump around, but when I try to debug and break my game, the NPC will get stuck if i stand where it is going to land. I tried changing the Z-level priority of the event with script to go above or below the player to try and unstick them, but it does not seem to do anything, same with trying to change the "through" option with a script. Also, I don't want to just have a condition to tell the NPC to jump to a different location if the player is standing inside of the jump path, because I feel like that is just a bandage for a larger problem. is there a way to "unstick" a player and an event if one jumps on top of the other?

    I know I can check the NPC event "though" option, but I want the event to feel real, and like it can affect the player.

    ...which leads me to my next question...

    2. How do I tell an event to "push" a player? all I can find is information about how a player can push an event, but not the other way around.

    OH. and im using these scripts.

    Galv's Move Route Extras

    Victor Engine (Pixel movement and Diagonal movement)

    Yami's Overlay mapping

    Any Help is much appreciated!
  2. To tell an event to do ANYTHING, you use event commands - in this case you would do a Set Move Route with the event as the subject. If you want the NPC to push the player backwards, you'd make the player move backwards first, and then make the NPC move towards the player.
  3. Yes, I was a fool. I forgot that you can control the player via move routes.

    So that's one question down, but what about getting stuck when using jump move routes? I have tried to seperate the player and NPC with move routes and scripts, but none work. is there another way? It seems like when it happens, the NPC still tries to performs its actions, but just spins around like it's hitting a wall on all sides.