Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 0 is not found and glitched sprite #8

Open
Neeshka2 opened this issue Mar 23, 2024 · 0 comments
Open

Error: 0 is not found and glitched sprite #8

Neeshka2 opened this issue Mar 23, 2024 · 0 comments

Comments

@Neeshka2
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant