MV Flexible use of the Show Picture command

Hi!

I have two questions. Here is: I want to show an image using Show Picture. For example, let's say this is a 350x500 letter. When you come in front of a table and have Player Touch, it will appear on this screen.
1) Is there a way to make it aligned to the center of the screen, regardless of resolution, instead of using X, Y coordinates to make it appear on the screen?
2) I want it not to move with the actor, but to stay where it is.

Unfortunately I couldn't find how to do this. I will be happy if you help.

Thank you from now.

PS: I hope I put this in the right place.
  1. You can set the picture to Origin: Center, then set the origin coordinates to the point in the centre of the screen, i.e. half the width and half the height. Via scripting:
    • Graphics.boxWidth / 2
    • Graphics.boxHeight / 2
    X and Y coordinates are essential, how else is it meant to know where to show the picture? 😅

  2. You'd either need to reposition the picture every frame, or find a plugin to "pin|fix|bind" pictures to the map (common for parallax mapping), e.g.
    I've heard the first one has issues in newer RPG Maker MV versions? I'm sure there are other options, too. 😮‍💨
Thank you very much @caethyril for your answer.

I use Orange Overlay for parallax map. That you said let's try it with him. Of course, there, I think the number at the end of the map name and the number in the name of the parallax file should match. If the issue is "MAP001", it looks like our map, parallax file should be named "par1".
Anyway, I'll look into that.

I will try X, Y as well. If I can't figure it out, I think I'll write it here again. 🙂

Please forgive me if my English spelling is bad! I'm using a translator. 🙂
Oh yes, the Orange plugins are excellent! Good luck~ 👋
most likely you'll have to do a lot of coordinate mathematics, because each of your x and y coordinates has two variables included to find the correct points.

changing screen size will change the xy coordinates of where the center of the screen is
depending on from where the player stands when triggering the event will change the xy coordinates of the center as well

and then you want to transfer that center to the map coordinates to make sure the picture stays there.

it is possible to do this, but you have to be rather careful when calculating your xy coordinates.
Thanks @Andar for the answer. Maybe using the fullscreen plugin and using a single screen resolution will solve my problem. Like sticking to a fixed resolution of 1920x1080, for example. I wonder if it works correctly on every screen? Of course I'm not sure about this. By the way, I'm writing for PC purposes only. I'm not considering a mobile game for now.
Hello again.

I tried X,Y adjustment and couldn't. 🙁 I don't have script knowledge. I followed such a method by reasoning. I think I'm doing it wrong. Because it didn't work.

ShowPictureProblem01.jpg
ShowPictureProblem02.jpg
ShowPictureProblem03.jpg
I tried X,Y adjustment and couldn't. 🙁 I don't have script knowledge. I followed such a method by reasoning. I think I'm doing it wrong. Because it didn't work.
What does "it didn't work" mean? What happened?

I tested the following in an event in a new RMMV project (no plugins): it made the picture appear in the middle of the screen, then showed the test message.

◆Control Variables:#0001 TargetX = Graphics.boxWidth / 2 ◆Control Variables:#0002 TargetY = Graphics.boxHeight / 2 ◆Show Picture:#1, icon, Center ({TargetX},{TargetY}), (100%,100%), 255, Normal ◆Text:None, Window, Bottom : :TEST : :What a nice picture!
If the message appears but the picture doesn't, check your other events for anything that changes the variables or that picture ID.
I will check everything again. I must have made a mistake somewhere. Maybe I misassigned the id of the picture.
it would still help if you tell us what happens when the event is run - that way we may be able to suggest what the problem is if the event works only partially...
I was making a mistake. Sorry. 🙁

I made a mistake in assigning the ID. It's actually a simple problem. Thank you so much. This problem of mine has been solved. The screen is centered exactly as I want it. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/flexible-use-of-the-show-picture-command.141747/