"Move away from player" not working?

I wanna make a treasure chest that runs away from you, but when i did it it just stays in one place, what do I do?
We need to see your Event to try to figure out what might be going on. A screenshot of the entire Event window or windows and pages.

Have you been able to do this at all, like with a different character sprite, or is this your first attempt?
We need to see your Event to try to figure out what might be going on. A screenshot of the entire Event window or windows and pages.

Have you been able to do this at all, like with a different character sprite, or is this your first attempt?
1710763377025.png
That has an action trigger so it will only move away from you once you open it.

E: My bad that move route is autonomous. Then it should work until it hits the edge of the map
That has an action trigger so it will only move away from you once you open it.

E: My bad that move route is autonomous. Then it should work until it hits the edge of the map
ok. how do I make it so that it will work even if it doesnt hit the edge of the map?
the event itself is correct, so the problem has to be the passability.
all events can only move if the tile they are on is passable.

but from the small part of the map we see there are no tiles, so how are you handling passability?
Also whats on page 2? if you left the condition as blank it will become the active page so double-check that.
ok. how do I make it so that it will work even if it doesnt hit the edge of the map?
So, do you want it to simply move in the direction opposite from the player (what that command does), or to intelligently find a path to avoids both the player and any obstacles? If the latter, you'd need either a plugin or a separate parallel event where you'll decide where it should move depending on both its and the player's position.
The question does seem to be the map itself.

Aside from that; if all of the commands are just Move Away From Player, why have twenty of them instead of just one, if the route is already set to Repeat Movements?
the event itself is correct, so the problem has to be the passability.
all events can only move if the tile they are on is passable.

but from the small part of the map we see there are no tiles, so how are you handling passability?
There is passability, and it does move but it stops in a corner
that is normal - if the event has no path to run away, then of course it stops.
that is normal - if the event has no path to run away, then of course it stops.
It can run away but it just chooses to stay at a corner.
It can run away but it just chooses to stay at a corner.
I guess I got the answer to my question then 😛
Move away from player will turn in a direction facing away from the player, and attempt to move in that direction. It will not check if that direction is in any way obstructed. If you want it to avoid obstacles, you'll need to implement that behaviour yourself - either by using a plugin for it, or manually setting a path that will avoid obstacles instead of the move away from player command.
I guess I got the answer to my question then 😛
Move away from player will turn in a direction facing away from the player, and attempt to move in that direction. It will not check if that direction is in any way obstructed. If you want it to avoid obstacles, you'll need to implement that behaviour yourself - either by using a plugin for it, or manually setting a path that will avoid obstacles instead of the move away from player command.
Oh... well do you have a method of doing it or do you have a pulgin for it?
Oh... well do you have a method of doing it or do you have a pulgin for it?
I don't know of a plugin for it (but if someone does that would probably be the best way of doing it).
Other than that probably just make it follow a specific path that goes away from the direction the player will come from.
Oh... well do you have a method of doing it or do you have a pulgin for it?
You're getting into pathfinding territory which has a habit of lagging the game because it's processor intensive

This will do it. The jump commands are less intensive than the move commands

If you get a dir8 error do what the guy in the comments said
You're getting into pathfinding territory which has a habit of lagging the game because it's processor intensive

This will do it. The jump commands are less intensive than the move commands

If you get a dir8 error do what the guy in the comments said
I just remembered, in the game there is a book shelf thingy that you can push, thus using move away from player. Meaning that the book thingy would be messed up if I used this plugin.

Anyways, I tried making an event tat goes something like this and it doesnt seem to work neither, the treasure just disappears out of thin air the moment i press up down left right

1710933288939.png


I just remembered, in the game there is a book shelf thingy that you can push, thus using move away from player. Meaning that the book thingy would be messed up if I used this plugin.

Anyways, I tried making an event tat goes something like this and it doesnt seem to work neither, the treasure just disappears out of thin air the moment i press up down left right

1710933288939.png
ok. that problem is gone But now it chooses to stay in the corner again even tho i didtn use move away from player, why?

You're getting into pathfinding territory which has a habit of lagging the game because it's processor intensive

This will do it. The jump commands are less intensive than the move commands

If you get a dir8 error do what the guy in the comments said
I tried using that plugin but then the treasure chest just ran into an NPC, and did not go anywhere else.
Plus, when I click on objects I get dir8 error
Plus, when I click on objects I get dir8 error
As previously mentioned:
If you get a dir8 error do what the guy in the comments said
As previously mentioned:
the guy in the comments also said that if u click on something it will still show dir8 error
the guy in the comments also said that if u click on something it will still show dir8 error
No, he said the game will lock until you click an actual valid location you can go to. I don't know what to tell you, you can't pathfind to a non valid location.

Original thread: https://forums.rpgmakerweb.com/threads/move-away-from-player-not-working.166943/