RPG Maker MV Javascript Move Point

Hi guys,

I would like to know if its possible to move the player with javascript to a Route Point like $gamePlayer.moveto(2,4). When I click in the map the Player moves straight to that point and avoid the obstacles and that I will write with javascript player move to position x= 4 and y = 8. How can I do that?
$gameTemp.setDestination(4, 8);But if you want to use it on a "Set Move Route" command, you will need a plugin I made.

The plugin thread is here.
Nice it works, thank you.

Now I have another question, this code works for the main player, how can I write this code, that it works for a NPC or my follower.
Nice it works, thank you.

Now I have another question, this code works for the main player, how can I write this code, that it works for a NPC or my follower.
My plugin also works for NPCs, use the following line on a setMoveRoute:

this.setDestination(4, 8);
when you said follower.. do you want to apply a move route to a follower or do you mean that they aren't following the player when you use call the setDestination method? because they should be following.
Hudell, Hi

I am trying your script, lets say is working. but i don't know exactly how.

I used $gameTemp.setDestination(x, y);

for move a event, and yes the event move and dissapear.

Now, is inside a Script, i use setDestination or this.setDestination, don't work.

Thanks on advice.
@Richard Dragon

Please do not hijack someone else's thread. Huddel has a thread for this plugin. You should ask your question there.
Hudell, Hi

I am trying your script, lets say is working. but i don't know exactly how.

I used $gameTemp.setDestination(x, y);

for move a event, and yes the event move and dissapear.

Now, is inside a Script, i use setDestination or this.setDestination, don't work.

Thanks on advice.
Check the plugin thread here: http://forums.rpgmakerweb.com/index.php?/topic/46735-orange-move-character-to/

The script call you said you used is not part of the plugin, that one is available on RM by default, but it only moves the player. My plugin adds the same feature on events and improves it to work well with move routes.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-javascript-move-point.46665/