Image Overlay with Large Parallax Maps

Shaz, I use the same script. It does have a [FIXED] prefix.

#To specify that a picture should be fixed to a map and not follow the


# screen, all you need to do is turn an in-game switch on before showing the


# picture. To specify which switch, all you need to do is change the value of


# SWITCH_ID at line 60. Alternatively, you can include the code [Fixed]


# somewhere in the name of the picture.
Actually, MA's script does in fact use the [Fixed] tag, but it can be anywhere in the filename.  Mine is at the very end since that's just the way I make mine.

My editable region:

#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ # Editable Region #|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| # SWITCH_ID - set this to the ID of the in-game switch that you want to # use to control whether pictures should be fixed. SWITCH_ID = 0 # COORDINATES_SWITCH_ID - Set this to the ID of the in-game switch that you # want to use to control how coordinates are set. If this switch is ON, then # for fixed pictures, you can just use the grid x and y coordinates (ie: you # would set (1, 4) instead of (32, 128). If you always want this feature to # be on when the FPM Switch is on, you can set it to have the same ID. COORDINATES_SWITCH_ID = 4 # Z_VARIABLE_ID - set this to the ID of the in-game variable that you # want to use to control the z-value priority of the picture. Z_VARIABLE_ID = 4 #|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| # End Editable Region #////////////////////////////////////////////////////////////////////////////Also, I think I see your issue.  You're using autorun events that don't end.  Do what I do.  For the picture event, place it anywhere you want and have it be a parallel event.  Once it calls the picture, have it erase the event, thus you won't have the need to use two page events.  Once you go back to the map, the event will still be there and be erased again after calling the picture.  Also, as you can see in the code, I set SWITCH_ID for fixed images to 0 since I put [Fixed] in all of my pictures.  This is how I do it:

Set Event to Parallel Process -

@>Control Variables: [0004😛icture_z-coord] = n@>Show Picture: 1, 'name[Fixed]', Upper Left (x,y), (100%, 100%)@>Erase EventAlso, if you're like me and want to use the tile coordinates instead of exact pixel coordinates without having to set the switch over and over again during testing, set it to auto-begin when you start the game using this script.

Good luck!
Oops, when I took that shot I had deleted the picture, so sorry about that. I did what you said and it worked! I guess what got it was the variable. I can now move behind objects. Thank you much for your help Shaz and sorry if I ever tried your patience.
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.
Reopened at OP's Request

icerose05 said:
Sorry, but I have a second question concerning this. I've got more than one map on my game that needs a picture overlay, so how would I do that with my script?
Unless the script modifies it, pictures stay until you actually remove them using the Erase Picture event command, or use another Show Picture to show a DIFFERENT picture using the same ID.


So if all of your maps have overlays, you just need to add a parallel process event to each map, using the correct commands to set the z-variable, show the correct picture, and erase the event. For maps that have NO overlay, if you get to them from a map that DOES have an overlay, you'd use the Erase Picture command instead of the Show Picture command.
Alright, thanks for the help!
Is this resolved, then?
Yes, it was resolved.
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/image-overlay-with-large-parallax-maps.19352/