[RM2k3] Picture flickering back and forth when player walks?

I have a small a small stat bar made up of a few layers of images in the upper left corner of my player's screen. When the player walks and the camera starts to move along with them, the stat bar starts to wiggle back and forth really rapidly. Here's a gif of what it looks like:

help_by_cephr-d95o4aw.gif


This happens with every image that I anchor on the map... I have the "Picture scrolls with Map" box checked, so why is this happening?
Uncheck that box. It means the opposite of what you think it means. When you move around the map, the map scrolls in the opposite direction you're moving in. By that logic, if the picture scrolls with it, it's going to scroll off the screen, so that's why it's moving slightly.

Secondly, are you using "Show Picture" in a parallel process by any chance, maybe with a wait command somewhere? I think what's happening is that an event script like that is telling the picture to repeatedly show in a particular coordinate. That's going to refresh CONSTANTLY (creating unwanted lag on slower/ancient PCs), so that's why it appears as if the picture is jumping back to its original position after moving slightly.

Assuming you are doing the second thing, a better technique to get into the habit of doing is showing a picture ONCE, and then using "move picture" in your parallel process to make adjustments if necessary (moving/fading/etc). If you need to replace that image with a new one entirely, you can always use Show picture again somehow, but you'd run into that lag issue again. What I like to do is Show a ton of pictures at once with a transparency of 100% (or use negative coordinates to draw the picture off-screen), and then use move picture commands to control which ones are on-screen at a given time. There's a little more eventing involved, but you get way better performance. "Show Picture" essentially means "take this picture's file and load it into memory" so you should only use it while initializing. Keep in mind that if you set a move command wait time to 0.0, the picture moves instantaneously. Any other wait time would move the picture from its current position to the target one.

Original thread: https://forums.rpgmakerweb.com/threads/rm2k3-picture-flickering-back-and-forth-when-player-walks.43646/