Set Varible to Event X & Y and using Show Picture at those variables

Its a simple question but I'm a newb doing something wrong because it just doesn't work.

I'm trying to show a picture at an events x & y position on the map. The event moves around so the picture has to go along with it. Since (for some weird reason) Control Variable doesn't have an option to set it off an events x/y, I used a script call inside event[1]:

$game_variables[1] = $game_map.events[2].x$game_variables[2] = $game_map.events[2].yWhat its supposed to do: Event 1 sets the Variables (1 & 2) based off the x & y of Event 2's current position.

Then I use a Show Picture command to display a picture at Variable[1 & 2].

The problem is, they both seem to use different values for x & y. I have to manually set the variable to 100s higher than the $game_map.events[2].x sets it in order to show the picture where I want it. But then I can't make it follow along with the event.

What am I doing wrong?
Control Veriables does have an option for this. You can find it via "Game Data" -> "Character".

The x / y - properties store the characters position using the tile grid. If you want to know the screen coordinates of an event use screen_x / screen_y instead.

There are scripts out there to let your pictures automatically move with the map, so you don't have to correct the picture position all the time.
Doh! You're right it is in there too. Thanks

Original thread: https://forums.rpgmakerweb.com/threads/set-varible-to-event-x-y-and-using-show-picture-at-those-variables.36841/