Move route commands stop when the player is far enough from them.

I have an event setup where a rolling boulder goes through an area and loops. The only problem is that when the player is 30 steps away from the event it won't loop because the event is too far from the player. ( I tested this by moving one step closer to the event origin, and then once it started up again I counted the tiles) So if the player waited at the end of the path the boulder takes, it would never come again even though it is supposed to loop because it's farther than 30 tiles.

I'm assuming MV does this to help prevent lag for large maps with tons of custom move routes, (like bustling cities or something similar)

I was wondering if there is a plugin or some sort of plugin that extends or removes this range so that events continue to move around even when they are off screen.
If it's just about the rolling boulder, can't you set up the move route with a parallel event giving the commands?

But there is also a plugin like this for off-screen movement by Shaz:

https://forums.rpgmakerweb.com/index.php?threads/always-update-off-screen-events.73797/#post-696442
to clear something up:
are you talking about autonomous movement or about set move route?

Because the autonomous movement stops by distance as an anti-lag-feature, and you would need an advanced anti-lag plugin with a feature to override that to solve this.

set move route on the other hand should work no matter the distance, and if that is what you used you need to find the plugin that changed the engine to block this.
Event1 will give Moveroute to Event 2 and 3, than Event 1 erases itself until map is reloaded.
Thatway Event2 and 3 will be able to move even if far outside of visible screen.

Create another Event and set it to Parallel, and insert this:
Eventcommand Set Moveroute for Boulder Event1 - Move 30 Tiles down, teleport to origin and repeat.
Eventcommand Set Moveroute for Boulder Event2 - Move 30 Tiles down, teleport to origin and repeat.
erase Event (So the parallel Event is only executed once when needed each time the map is traveled to )

Here is the Scriptline for Eventcommand Set Moveroute to Teleport the Event back to its original start Position:
Code:
$gameMap.events()[ this._eventId - 1 ].setPosition( $dataMap.events[ this._eventId ].x, $dataMap.events[ this._eventId ].y );
Thanks go to @caethyril if i remember correctly.
As mentioned, by default auto move routes are paused while off-screen, unlike evented routes (Set Movement Route command). Related:


Here is the Scriptline for Eventcommand Set Moveroute to Teleport the Event back to its original start Position:
Code:
$gameMap.events()[ this._eventId - 1 ].setPosition( $dataMap.events[ this._eventId ].x, $dataMap.events[ this._eventId ].y );
Thanks go to @caethyril if i remember correctly.
No, I'm pretty sure I would have suggested something like this:
JavaScript:
var ev = this.character(0); ev.locate(ev.event().x, ev.event().y);
I.e. store "This Event" in a temporary variable ev, then relocate that event to the position set in the editor. (If used in a move route rather than a standalone Script command, swap this.character(0) for this.)

Pretty sure that's irrelevant here, though. 😅
If it's just about the rolling boulder, can't you set up the move route with a parallel event giving the commands?

But there is also a plugin like this for off-screen movement by Shaz:

https://forums.rpgmakerweb.com/index.php?threads/always-update-off-screen-events.73797/#post-696442
Thanks, this worked perfectly, sorry it took me so long to get back to this thread, I haven't had much free time lately lol.

Original thread: https://forums.rpgmakerweb.com/threads/move-route-commands-stop-when-the-player-is-far-enough-from-them.146446/