Show and Move Picture Issue

I'm making this '?' Block that dispenses a coin when jumped on, it should appear above it but it keeps appearing to the top left.
Coin1.PNG

Coin.PNG

The one I marked is the location where I wanted the coin to appear (13, 6)
Second Picture the event I used so the coin came out after the block was hit and where I intended it to appear.




The video above is what the event currently runs like.

How does the Show and Move Picture 'Direct Designation' Option work?
The picture coordinates are pixels, not tiles.
The picture coordinates are pixels, not tiles.
Then what exact numbers do I input in Direct Designation?
Better question, how do I find the numbers to set the pictures where I want it to be?
Better question, how do I find the numbers to set the pictures where I want it to be?
There's a Triacontane plugin that'll do it. I don't think it's something built into the editor.
Then what exact numbers do I input in Direct Designation?
The exact window coordinates you want the picture to appear at.

Better question, how do I find the numbers to set the pictures where I want it to be?
Tiles in RPG Maker MV are 48x48 pixels. So if you want the picture to appear on tile 13, 6 you simply multiply each of those numbers by 48 pixels.

There's a Triacontane plugin that'll do it. I don't think it's something built into the editor.
Huh?
I was thinking of this
I was thinking of this
Okay after countless testing I was able to adjust it using this plugin.
Thank you to @AquaEcho & @ATT_Turan for helping with the issue
Just to mention it: the event option you'd have wanted to use here is "Designation with variables", not "Direct designation". Simply multiplying the tile coordinates by the tile size would only be correct if the top-left tile of the map were on-screen.

You can get the screen coordinates of a character using the Control Variables command. E.g. with only a couple of reusable variables:
  • Control Variables: Target X -> Set -> Game Data -> Character -> This Event -> Screen X.
  • Control Variables: Target Y -> ...etc... -> Screen Y.
  • Show Picture: 2 -> Designation with variables -> { Target X, Target Y }.
  • Control Variables: Target Y -> Sub -> 96. (I.e. move up 96 px.)
  • Move Picture: 2 -> Designation with variables -> { Target X, Target Y }.
[Edit: corrected "Map X|Y" to "Screen X|Y". 😴]
Simply multiplying the tile coordinates by the tile size would only be correct if the top-left tile of the map were on-screen.
Good point 😅

  • Control Variables: Target X -> Set -> Game Data -> Character -> This Event -> Map X.
  • Control Variables: Target Y -> ...etc... -> Map Y
Shouldn't that be Screen X and Y? Wouldn't Map X/Y produce tile coordinates still, which Show Picture would interpret as pixel coordinates on the screen?
Shouldn't that be Screen X and Y?
Oops. Yep, I'll edit that in. 😊

Original thread: https://forums.rpgmakerweb.com/threads/show-and-move-picture-issue.173662/