I just want to know how I can access the X and Y coordinate values in RPG Maker MZ and save them to a variable. :]
How to save the X/Y values of a picture to variables
RPG Maker MZ Supportthese are script calls, its in the picture properties part scroll down a lil and the coding is on the far right, u may have to scroll right
I think the script call list is easier to read/navigate when not embedded:
These are the script calls for X/Y coordinates of picture ID 1:
[Edit: added the missing brackets on
These are the script calls for X/Y coordinates of picture ID 1:
$gameScreen.picture(1).x()$gameScreen.picture(1).y()
[Edit: added the missing brackets on
x and y. 😴]Thank you for the help :] I used the script call incorrectly but now using it properly.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-save-the-x-y-values-of-a-picture-to-variables.153279/