How to transfer event to player position (pixel base/off grid)?

Hello everyone,

I'm asking for help to transfer an event to player position (offgrid).
I have set 2 variables :
◆Control Variables:#0003 Player pixel PosX = Screen X of Player
◆Control Variables:#0004 Player pixel PosY = Screen Y of Player

But when I'm using the "Set Event location" function to teleport the event, it didn't work. I mean the event is nowhere.
(maybe cuz it's grid-base).

Currently, i'm using QMovement plugin for pixel mouvement.
There's some plugin command but i don't know how to use it properly.

Thank you =D
No, because the screen position is a calculation of the map position and the current offset. Changing the screen position works for a single frame until the program recalculates it - and there might not even be a draw between those two things happening.

You won't be able to do it with event commands, because the plugin overrides the normal character movement that the event commands are based on. You will have to use script calls to set the event's x and y position to the player's x and y position, in the same manner that the plugin changes the player's x and y position.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-transfer-event-to-player-position-pixel-base-off-grid.83501/