About:
Change the behavior of the "move toward player" move route command to use pathfinding.
Preview:
The code:
Terms of Use:
MIT
Change the behavior of the "move toward player" move route command to use pathfinding.
Preview:
The code:
JavaScript:
Game_Character.prototype.moveTowardPlayer = function() {
const d = this.findDirectionTo($gamePlayer.x, $gamePlayer.y)
this.moveStraight(d);
};
Game_Event.prototype.searchLimit = function() {
return 9999;
};
Terms of Use:
MIT
