Hi all, I have a .png image with 225x63 dimensions. I am calling it using a plugin that activates a common event before a random encounter. I want the 225x63 image to be centered on the actor before the combat starts. I've searched the web and forums and have not found any way to do this.
Any help or ideas to accomplish this would be appreciated.
This is the first time I have tried out pictures.
So you want to show this on the map, before transitioning to the battle screen?
Use Control Variables to get the player's Screen X and Screen Y positions into two different variables (this is under Game Data > Character's > Player's > Screen X/Y.
Then in the Show Picture command, set the origin to the center of the picture rather than top left, and use the variables to set the position.
Why is the second page set to Player Touch? That means you're getting the coordinates of the player, then letting them walk around a bit, then moving the picture to where the player used to be.
You don't need two pages. Get the coordinates into the variable at the exact time you want to show the picture.
You are setting the variables to the player's MAP x and y. You should be setting them to the SCREEN x and y, as pictures are attached to the screen, not to the map. Screen X and Y are obtained via the same method.