In Ace I had a little script that would allow me to show pictures behind the map rather than in front. I did this by putting the pictures into a different viewport and modifying their z index.
I went to convert it today, only to find there's no update_pictures equivalent in Spriteset_Map, and there don't seem to be viewports either.
So does MV add containers to the scene in a certain order, then add objects (sprites) to those containers, and that's the order they're shown in, and you're stuck with that order? Which means I'll have to add another container for pictures prior to the map container, and put them in there when I want pictures behind the map?
edit: this is my Ace script - it's really, really simple. But doesn't look like converting to MV will be quite as easy as this.
edit2: what I'd really like to do is just temporarily move Spriteset_Base's _pictureContainer so that it's between Spriteset_Map's _parallax and _tilemap, and then later move it back to where it originally was - all within a single cutscene. Is there an easy way to do that?
I went to convert it today, only to find there's no update_pictures equivalent in Spriteset_Map, and there don't seem to be viewports either.
So does MV add containers to the scene in a certain order, then add objects (sprites) to those containers, and that's the order they're shown in, and you're stuck with that order? Which means I'll have to add another container for pictures prior to the map container, and put them in there when I want pictures behind the map?
edit: this is my Ace script - it's really, really simple. But doesn't look like converting to MV will be quite as easy as this.
Code:
class Game_Temp
attr_accessor :pictures_in_back # Show pictures behind tilemap
def initialize
....
@pictures_in_back = false
end
end
class Sprite_Picture < Sprite
def update_position
self.x = @picture.x
self.y = @picture.y
self.z = $game_temp.pictures_in_back ? @picture.number - 100 : @picture.number
end
end
class Spriteset_Map
def update_pictures
$game_map.screen.pictures.each do |pic|
@picture_sprites[pic.number] ||= Sprite_Picture.new(
$game_temp.pictures_in_back ? @viewport1 : @viewport2, pic)
@picture_sprites[pic.number].update
end
end
end
edit2: what I'd really like to do is just temporarily move Spriteset_Base's _pictureContainer so that it's between Spriteset_Map's _parallax and _tilemap, and then later move it back to where it originally was - all within a single cutscene. Is there an easy way to do that?