I scripted this little definition for Spriteset_Map a while ago, and it isn't working for some strange reasons I can't tell... the panorama just stays at Water-01...
The update_panorama call is inside the first conditional of update definition, just if that matters...
Thanks in advance.
Code:
def update_panorama
if @panorama_name == "Water-01"
@panorama.bitmap = RPG::Cache.panorama("Water-02", @panorama_hue)
elsif @panorama_name == "Water-02"
@panorama.bitmap = RPG::Cache.panorama("Water-03", @panorama_hue)
elsif @panorama_name == "Water-03"
@panorama.bitmap = RPG::Cache.panorama("Water-04", @panorama_hue)
elsif @panorama_name == "Water-04"
@panorama.bitmap = RPG::Cache.panorama("Water-01", @panorama_hue)
end
end
The update_panorama call is inside the first conditional of update definition, just if that matters...
Code:
def update
update_panorama
if @panorama_name != $game_map.panorama_name or @panorama_hue != $game_map.panorama_hue
@panorama_name = $game_map.panorama_name
@panorama_hue = $game_map.panorama_hue
if @panorama.bitmap != nil
@panorama.bitmap.dispose
@panorama.bitmap = nil
end
Graphics.frame_reset
end
# [...]
end
Thanks in advance.