# _______________________________________________________________________________
# + + + + MOG Animated Overview V2.1 XP + + +
# _______________________________________________________________________________
# By Moghunter
#
http://www.atelier-rgss.com# _______________________________________________________________________________
# Animation panorama frames .
# You need the extra images of the frames for the animation occurs .
# Example .
#
# DepthsDarkLava1.png (Frame 1 ) ( This is the image of the Database )
# DepthsDarkLava2.png (Frame 2 )
# DepthsDarkLava3.png (Frame 3 )
# DepthsDarkLava4.png (Frame 4 )
# DepthsDarkLava5.png (Frame 5 )
# DepthsDarkLava6.png (Frame 6 )
# DepthsDarkLava7.png (Frame 7 )
# DepthsDarkLava8.png (Frame 8 )
# DepthsDarkLava9.png (Frame 9 )
# DepthsDarkLava10.png (Frame 10 )
#______________________________________________________________________________
MOG module
# Speed ??of animation
PANOREFRESH = 8
# You can change the animation speed by using this code
# Call script command .
#
# $ = X game_system.pano_anime_speed
#
# X = speed of the animation.
#
end
# ================================================= ==============================
# ? Game_System
# ================================================= ==============================
class Game_System
attr_accessor : pano_anime_speed
# ------------------------------------------------- -------------------------
? # Initialize
# ------------------------------------------------- -------------------------
alias mog14_initialize initialize
def initialize
mog14_initialize
@ pano_anime_speed = MOG :: PANOREFRESH
end
end
# ================================================= ==============================
# ? Spriteset_Map
# ================================================= ==============================
class Spriteset_Map
# ------------------------------------------------- -------------------------
? # Initialize
# ------------------------------------------------- -------------------------
alias mog14_initialize initialize
def initialize
@ panospeed = 0
@ panoframes = 0
@ panorama_animated = false
mog14_initialize
end
# ------------------------------------------------- -------------------------
# ? Update
# ------------------------------------------------- -------------------------
alias update mog14_update
def update
can_panorama_animation
mog14_update
update_panorama_animation
end
# ------------------------------------------------- -------------------------
# ? can_panorama_animation
# ------------------------------------------------- -------------------------
def can_panorama_animation
if @ panorama_name ! = $ game_map.panorama_name or
panorama_hue @ ! = $ game_map.panorama_hue
@ panospeed = 0
@ panoframes = 0
@ panorama_animated = false
image = RPG :: Cache.panorama ( $ game_map.panorama_name + " 1 " , $ game_map.panorama_hue ) rescue nil
if image! = nil
@ panorama_animated = true
image.dispose
end
end
end
# ------------------------------------------------- -------------------------
# ? update_panorama_animation
# ------------------------------------------------- -------------------------
def update_panorama_animation
return unless @ panorama_animated
if@panorama.bitmap == nil return
panospeed @ + = 1
if @ panospeed > $ game_system.pano_anime_speed
@ panospeed = 0
panoframes @ + = 1
@ panorama.bitmap = RPG :: Cache.panorama ( @ + @ panorama_name panoframes.to_s , @ panorama_hue ) rescue nil
if@panorama.bitmap == nil
@ panoframes = 0
@ panorama.bitmap = RPG :: Cache.panorama ( panorama_name @ , @ panorama_hue )
end
$ game_map.panorama_name = @ panorama_name
$ game_map.panorama_hue = @ panorama_hue
end
end
end
$ mog_rgss_animemated_panorama = true