I would appreciate it if you could let me know both for the event and the player!
MZ How to set character's ScreenXY Position to variables with a script?
Javascript/Plugin SupportJust as a tip: MZ and MV have been out for years, so all basic questions have already been asked. You'd quickly get an answer if you Googled "rpg maker mz script call x y" or something like that 😉
There's also a pinned thread with all of the engine's script calls:
forums.rpgmakerweb.com
It's the same for both,
So, for example,
There are also event commands for this, so the odds are good you might not need to be using code.
There's also a pinned thread with all of the engine's script calls:
RPG Maker MV / MZ Script Call List
This Script Call list applies to both RPG Maker MV and RPG Maker MZ. Link here to see the entire list. Supplementary Material for RPG Maker MZ: https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mz-script-call-reference.122501/ Have fun eventing~
forums.rpgmakerweb.com
It's the same for both,
screenX() and screenY()So, for example,
$gamePlayer.screenX() or, inside an event, this.screenY()There are also event commands for this, so the odds are good you might not need to be using code.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-characters-screenxy-position-to-variables-with-a-script.157469/