Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Thank you! The plugin works very well when I set the move route to "Toward Player" But I want to use a script to give it a smart pathfinder. When I use the script for the custom route for an event they no longer can move diagonally. Why is that? Here is what I'm working with.

$gameMap._events[this._eventId].moveStraight($gameMap._events[this._eventId].findDirectionTo( $gameVariables.value(1),$gameVariables.value(2) ));

where VariableID#1 is PlayerX

VariableID#2is PlayerY

If I change the script with moveDiagonally it behaves strange.

Hi there!

the moveStraight method will not work for this. If you want a character(event, player, or follower) to move towards a specific character with a script call, you should try using this method instead:

  • $gameMap._events[this._eventId].moveTowardCharacter($gamePlayer)
(+1)

Thank you so much! That helped :) This is a great plugin and I'm glad it exists! Not many plugins like this affect events so it's perfect!

Glad it helped!

Have fun! ^^