I'm trying to set an item to move across the screen, then when it's reached the end, reset back to the original location. I've tried to set the move route, then set event location back to the original spot, but the event just sits at the end of the screen and wont move.
Is there something I'm missing or a setting that might need to be changed?
Set its processing to parallel?
You need to either make the event parallel process and make the movement a move route command instead of a defined route, or put the position reset in as a script command as part of the defined movement route.
Yeha fair one, no screenshot so suggested a brute solution
It might be stuck because the move route is not set correctly (something like it is set to move right 45 times, but the end of the screen is only 44 tiles away - this could be solved by setting the move route to skip if cannot move). Agreed with the others, we need to see how it's currently set up to offer meaningful advice.
You can use a line of Code in a Events Autonomous Moveroute to reset to its Editor selected position,
like on Map start.
Use this in Autonomous Moveroute:
moveto(@event.x, @event.y)
or
If you want to use Event Command Set Move Route, to be able to reset other Events and not only itself,
and for off screen Event timing reasons,
than use this:
$game_map.events[self.id].moveto(@event.x, @event.y)
Select the Event Id directly in the Eventcommand, no Code Edit needed.
Edit: Do not forget to mark "Skip if Cannot Move" in the Moveroute, else the Event will Wait to make its last step before teleporting, which never happens because the path will never get passable. Atleast if the Moveroute is set up incorrectly. Iam just blind guessing with this one.