Picture pixel bug

I think this may have been fixed, but I don't know. I'm making a game in RPG Maker VX Ace and in some of the maps, there are pictures that are supposed to move in relation to the map, specifically, the top left of the picture is supposed to be in the top right of the map at all times.


It calculates it as follows:


x = $game_map.display_x


temp = x


x -= temp * 32


It runs through this formula twice (once for each axis) and then shows the picture. It works fine, but when the camera moves from 0, 0, the image starts to fall out of position.


I have attached two pictures to illustrate what I'm talking about. Pay attention to the crystal visible in both pictures.


Is there any way to fix this problem? Thanks.

A Necromancer's Tale - 57 FPS 27_08_2016 10_36_27 PM.png

A Necromancer's Tale - 57 FPS 27_08_2016 10_39_55 PM.png
I'm guessing you need a script to fix the picture to the map, not the screen. Something like this maybe? http://rmrk.net/index.php?topic=44837.0
I'm guessing you need a script to fix the picture to the map, not the screen. Something like this maybe? http://rmrk.net/index.php?topic=44837.0

Thank you for showing me that script. After a bit of work, it fits my needs perfectly. The reason that I thought of this is that when I first got RPG Maker VX Ace on Steam in 2012, there were some extra bug-fix scripts that were included and one of them was to fix this problem. I couldn't find it, so that's why I asked.
Thank you for showing me that script. After a bit of work, it fits my needs perfectly. The reason that I thought of this is that when I first got RPG Maker VX Ace on Steam in 2012, there were some extra bug-fix scripts that were included and one of them was to fix this problem. I couldn't find it, so that's why I asked.


I'm guessing you need a script to fix the picture to the map, not the screen. Something like this maybe? http://rmrk.net/index.php?topic=44837.0

It turns out that the script you suggested did work, but was causing issues elsewhere. Case in point, the game crashed when entering a map that determined its position via screen x and screen y and when I tried to change the picture, RPG Maker crashed (I tried multiple times, so it's not just a one-off error). I have since removed the script. Any other ideas for fixing the bug? I specifically mean the bug I outlined in my initial post (the problem with the picture not lining up).
As far as I am aware, the only way of solving your initial problem is by using a script which fixes the picture to the map, and the one suggested is the easiest around.  Therefore, I think you will have to discover why you have a problem with that script.  My initial guess is that your remove picture command may be in the wrong place.  The way I do it is this.


Map A has a Show picture command in a parallel process event (so that it runs when the map is loading) with 'Erase Event' immediately after that command if I want that picture to be loaded every time I enter that map.  Otherwise self switch to new page.


My transfer event out of the map is slightly different from the default to keep the visuals smooth.  I do a fade out command, Remove Picture (and tints and anything else that needs doing) then the transfer command, with the default fade out changed to none.  Then a fade in command.  So that picture is removed before I get to the new map.  Therefore anything on the new map is unaffected by previous event activity.


Perhaps we need to see screenshots of the event that is having problems.  It will need to be the whole page so that we can see the conditions etc. and if there is more than one page, we will need to see all of them.  Without that, it is all a bit of a guess as to what the root cause is.
As far as I am aware, the only way of solving your initial problem is by using a script which fixes the picture to the map, and the one suggested is the easiest around.  Therefore, I think you will have to discover why you have a problem with that script.  My initial guess is that your remove picture command may be in the wrong place.  The way I do it is this.


Map A has a Show picture command in a parallel process event (so that it runs when the map is loading) with 'Erase Event' immediately after that command if I want that picture to be loaded every time I enter that map.  Otherwise self switch to new page.


My transfer event out of the map is slightly different from the default to keep the visuals smooth.  I do a fade out command, Remove Picture (and tints and anything else that needs doing) then the transfer command, with the default fade out changed to none.  Then a fade in command.  So that picture is removed before I get to the new map.  Therefore anything on the new map is unaffected by previous event activity.


Perhaps we need to see screenshots of the event that is having problems.  It will need to be the whole page so that we can see the conditions etc. and if there is more than one page, we will need to see all of them.  Without that, it is all a bit of a guess as to what the root cause is.

I have looked into what may be causing the error. Thankfully, it's not the script at all, it's one of my pictures. GIMP exports it in a corrupted format for some reason. I've tried exporting it again to fix the error, but it keeps happening, so it may be due to the resolution of the picture (13056 x 10164). I'll try to find other ways that I can get the desired effect with some smaller pictures.
Why is your picture so big? Perhaps I'm wrong, but shouldn't it be at most the same size as your screen resolution?
Did you customize that script properly?  Looks like it uses a couple of switches and a variable.  Did you reserve them to make sure you're not using them for something else?


If there were a problem with the script, it would be reported by many people.  The fact that it hasn't been indicates it's more likely to be an issue with the way you're using it.


edit: oops - didn't read your last post.
So, is this problem solved then?
So, is this problem solved then?

Yes, but I have a new problem to fix. It's to do with reconfiguring a particular picture on a particular map that deals with screen-x and screen-y. This problem doesn't have to do with the picture plugin, though.
The description doesn't tell us what the problem is or what help you need.
The description doesn't tell us what the problem is or what help you need.

If you're referring to the initial problem that I outlined at the start, I actually did (at least try to) outline the problem (that being that pictures were getting out of sync). The other problem (the picture on another map not working) ended up having nothing to do with the script. I didn't give further information because I decided to tackle that myself.
Why is your picture so big? Perhaps I'm wrong, but shouldn't it be at most the same size as your screen resolution?

Sorry, I took so long to reply (I initially didn't notice), but the reason it was so big was because the room the map is in has a mechanic where the player can only see a little bit in front of them. I did this by making a picture so big that if you were looking at the top right corner when the player was in the bottom left corner, you shouldn't be able to see anything (that example was literal because I have a script that I made to move the camera by player input).
Just letting everyone know, the problem has now been solved. I will not close the question in case someone else has a similar problem (that, and I don't know how to close a question).
You should still close it - necroposting and hijacking are both against the rules, so anyone who has the same question can either see the solution in yours, or start their own thread.  To close, report your first post and ask the mods to close it.
Or a mod will happen to see it and close it. 😛


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.

Original thread: https://forums.rpgmakerweb.com/threads/picture-pixel-bug.67442/