You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variables 59 and 60 are Player's X and Y coordinates.
Gives following error when enemy touches the player.
rmmz_managers.js:2036 Error: 0 is not found
at Function.fromDirection (DotMoveSystem.js:411)
at CharacterMover.moveStraight (DotMoveSystem.js:1763)
at Game_Event.Game_CharacterBase.moveStraight (DotMoveSystem.js:2042)
at eval (eval at Game_Character.processMoveCommand (rmmz_objects.js:7775), :1:33)
at Game_Event.Game_Character.processMoveCommand (rmmz_objects.js:7775)
at Game_Event.processMoveCommand (SelfVariable.js:1460)
at Game_Event.Game_Character.updateRoutineMove (DotMoveSystem.js:2358)
at Game_Event.updateRoutineMove (ARPG_Core.js:10126)
at Game_Event.Game_Character.updateStop (rmmz_objects.js:7618)
at Game_Event.updateStop (rmmz_objects.js:9206)
The text was updated successfully, but these errors were encountered:
Enemy sprite glitches when it moves using this movement script, also enemy seems to move diagonally with it:
$gameMap._events[this._eventId].moveStraight($gameMap._events[this._eventId].findDirectionTo( $gameVariables.value(59),$gameVariables.value(60) ));
Variables 59 and 60 are Player's X and Y coordinates.
Gives following error when enemy touches the player.
rmmz_managers.js:2036 Error: 0 is not found
at Function.fromDirection (DotMoveSystem.js:411)
at CharacterMover.moveStraight (DotMoveSystem.js:1763)
at Game_Event.Game_CharacterBase.moveStraight (DotMoveSystem.js:2042)
at eval (eval at Game_Character.processMoveCommand (rmmz_objects.js:7775), :1:33)
at Game_Event.Game_Character.processMoveCommand (rmmz_objects.js:7775)
at Game_Event.processMoveCommand (SelfVariable.js:1460)
at Game_Event.Game_Character.updateRoutineMove (DotMoveSystem.js:2358)
at Game_Event.updateRoutineMove (ARPG_Core.js:10126)
at Game_Event.Game_Character.updateStop (rmmz_objects.js:7618)
at Game_Event.updateStop (rmmz_objects.js:9206)
The text was updated successfully, but these errors were encountered: