[RMVX ACE] HELP WITH SHOW PICTURE (*SHAME*)
Posts
Pages:
1
This is frustrating because I really think I knew how to do this once, but how do you get a picture to center on the player, and not on the screen. I know there's a script by someone called something something picture anchors, but a) I tried it and it didn't work and actually made the problem worse and b) I'm almost sure I could do this without a script back in VX, at least.
As a simple example, let's say I want this picture as an overlay to center on the player, because the player is exploring a dark dungeon or whatever and can only see a tiny circle around them from a torch or whatever. This can be used for creating a fog of war, making a horror game tense by restricting visibility, whatever. I'm over-explaining.
Right now, Ace centers the picture on the screen. The circle of light doesn't travel with the player, and the player can easily move out of the light and onto a completely obfuscated part of the map. I am almost positive I knew how to do this properly once and without any special script to do it...but I totally forgot. Can someone remind me?
Please and thank you.
- Crow
As a simple example, let's say I want this picture as an overlay to center on the player, because the player is exploring a dark dungeon or whatever and can only see a tiny circle around them from a torch or whatever. This can be used for creating a fog of war, making a horror game tense by restricting visibility, whatever. I'm over-explaining.

Right now, Ace centers the picture on the screen. The circle of light doesn't travel with the player, and the player can easily move out of the light and onto a completely obfuscated part of the map. I am almost positive I knew how to do this properly once and without any special script to do it...but I totally forgot. Can someone remind me?
Please and thank you.
- Crow
The thought in my head is that the graphic movement probably should be tied to a parallel process. Said process detects the x/y position of the player, stores them in variables, and uses those variables to set the position of the graphic (as in, the event-command, Show Picture), or to move it (as in, the event-command Move Picture), as necessary.
*Edit: My current guess is that you need to set the "Origin" to the upper-left, as the x/y coordinates of the upper left is (0, 0), and we want to base where we put the graphic on a map-relative position. Setting the "origin" to center probably sets it to a screen-relative position. If that makes any sense.
*Edit2: I've not actually tested any of this, but, it does seem exceptionally likely.
*Edit: My current guess is that you need to set the "Origin" to the upper-left, as the x/y coordinates of the upper left is (0, 0), and we want to base where we put the graphic on a map-relative position. Setting the "origin" to center probably sets it to a screen-relative position. If that makes any sense.
*Edit2: I've not actually tested any of this, but, it does seem exceptionally likely.
So as I maybe should have done BEFORE making this thread I actually reinstalled VX and went back to the project where I remember doing this back in the day and it's largely as Marrend posited, except apparently using the Center origin?
I suppose a center origin could mean that the graphic is drawn at the specified coordinates with the graphic centered at that point. If that's true, an upper-left origin would probably mean that the upper-left of the graphic is aligned with the coordinates specified.
Still mostly guesswork on that point. Still, at least I got rest of the info correct!
Still mostly guesswork on that point. Still, at least I got rest of the info correct!
Pages:
1

















