Difference between _x and _realX, _y and _realY?

Hello.

I'm trying to determine the position of the player on the map for an event.
When I looked into it, I found two pairs of relevant variables:
$gamePlayer._x and $gamePlayer._y,
$gamePlayer._realX and $gamePlayer._realY

What is the difference between the two?
_realXY version is the actual position (measures in grids), while xy is the destination of the event.

For example, if _realX is 3 and x is 4, the event will try to move fom 3 to 4, and along the way _realX inceased until it becomes 4.
Oh, so _realXY is the position where it is and _xy is the position where it's going, but might not be.🙂
Just kidding.

So it shouldn't matter in my case, since the event does not move and it's triggered by the action button.

Thanks a lot for the clarification.
Yeah, it is about right.
Although, player position command/condition will use _x instead of _realX, if you want the actual position of the sprite you can use screenX/Y. But you can also calculate with _realX/Y if you want to do something graphics related.
This thread is closed due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/difference-between-_x-and-_realx-_y-and-_realy.171280/