After thinking a little further on the subject, I think this might be a better solution in the long run :
#==============================================================================# ** Spriteset_Map#==============================================================================class Spriteset_Map #-------------------------------------------------------------------------- # * ALIAS - Update Picture Sprite #-------------------------------------------------------------------------- unless method_defined?
🙂picture_YrdUQOTK_ssm_update_pictures) alias_method
🙂picture_YrdUQOTK_ssm_update_pictures, :update_pictures) end def update_pictures(*args, &block) $game_map.screen.pictures.each do |pic| if pic.number > 100 @picture_sprites[pic.number] ||= Sprite_Picture.new(nil, pic) @picture_sprites[pic.number].z = pic.number end end picture_YrdUQOTK_ssm_update_pictures(*args, &block) endend # Spriteset_MapWith the above scriptlet, any picture over the number of 100 will be released from '@viewport2' and have a z-coordinate equal to its number (picture number 150 would have a z-coordinate of 150, and so on). You will have to use the '$game_map.screen.pictures[number].show' script command to display a picture, but now you can have motion, centered x/y coordinates, and so on.
Code:
# origin - 0 upper-left, 1 center# zoom_x - 100.0 default# zoom_y - 100.0 default# opacity - 255 default# blend_type - 0 default, 1 add, 2 subtractscreen.pictures[number].show('filename', origin, x, y, zoom_x, zoom_y, opacity, blend_type)
EDIT: Edited code because of double picture update.