Well, basically I want to show pictures in my game and I don´t know how to know the exact coordinates where I put the images and I always have to try again and again. Someone knows any tricks for knowing the exact position of the screen where the picture is going to be shown? And also I want to know the difference between "Top Left" and "Centre" options.
In conclusion, I´m a little fed up with that event command, because I don´t understand it clearly and how it works correctly...
I´d thank a lot the help.
Confused with showing pictures
● ARCHIVED · READ-ONLY
-
-
Top Left means that the basic default position of both screen and pictures is based on the 0,0 coordinate in the top left edge.
Center means that the basic default position of both screen and pictures is based on the middle of all size/coordinates.
So you use top left for backgrounds, ful screen or exact positioning and you use center when you want to center pictures of variable or unknown sizes. In that case you use the center screen coordinate only and let the engine handle the picture sizes. -
I have an easy trick.
Print screen, then open it in a graphics editor of your choice. Import the picture and move it wherever you wish. Then zoom so that you can distinguish individual pixel, move the cursor to the top left pixel of the image and somewhere in the UI there should be the coordinates you are searching for. Input these in the show picture command. All done and ready to go. -
If your picture is the same size as the game window, use top left and 0, 0.
If your picture is not the same size as the game window, but you want it centered on the screen, use centre, and divide the width and height of the game window by 2 and use those as the picture coordinates.
If you want it somewhere else, you'll have to play around a bit. I thought Archeia had a plugin that allowed you to move a picture around on the map when playing, and let you see the coordinates, but I might be wrong. -
I'm used to using show picture. It's the most potential and flexible feature in RM.
Here's some trick to understand it well- Learn your canvas. RMMV game screen resolution by default is 816 x 624. Unless you change the game resolution through plugin of course...
- If you are going to use show picture event a lot in the future, take a mental note of your mostly used Coordinate Point.
- For starter, imagine the game screen as a grid. Then get used to the 9 important coordinate point in the center (screen res divided to quarter square). Make use of that mental math you learn at school.
- What is this Origin position? What is this "Upper Left" and "Center" refer to? Short answer is, they are Anchor Point.
- It's like the coordinate point, but for the image file. Not the canvas. Think of it like an align for a font.
- In RM, they simplify it by only have upper left and center as an option for anchor point.
- In practice, putting an image is basically when the Anchor Point of the image meet the Coordinate Point of the canvas.
- For example, you want to put your picture at the center of the game screen (408, 312). Then you check the Upper Left as the origin position. Of course this will happen :
- If you want it to show up exactly centered, then check the center as the origin.
Many drop this feature because (probably) they hate math and just want a less pain-in-the-ass way of doing the job like resorting to make the image as big as the screen size and put them in (0,0) upper left. Perhaps they should change the interface of the show picture to be more interactive.
Hope this explain well ~ - Learn your canvas. RMMV game screen resolution by default is 816 x 624. Unless you change the game resolution through plugin of course...
-
Thank you all for the answers, all will be useful for solving my picture´s problems! :3
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.