Started by jyumai, July 25, 2011, 05:40:36 pm
class Scene_Title alias zer0_title_fog_main main def main viewport = Viewport.new(0, 0, 640, 480) # Change the value of the next line to like 10000 to have it display "over" # the windows instead of behind them viewport.z = 100 @fog = Plane.new(viewport) @weather = RPG::Weather.new(viewport) #--------------------------------------------------------------------------- # Adjust your settings for the fog here @fog.bitmap = RPG::Cache.fog('001-Fog01', 0) # Name of the fog @scroll_speed_x = 3 # Horizontal scroll speed @scroll_speed_y = 3 # Vertical scroll speed @fog.zoom_x = 1.0 # Zoom on the x-axis @fog.zoom_y = 1.0 # Zoom on the y-axis @fog.opacity = 60 # Opacity @fog.blend_type = 0 # Blendtype @fog.tone = Tone.new(0, 0, 0, 0) # Tone to blend with the bitmal @weather.type = 1 # The weather type @weather.max = 25 # The power of the weather #--------------------------------------------------------------------------- zer0_title_fog_main [@fog, viewport].each {|sprite| sprite.dispose } end alias zer0_title_fog_upd update def update @fog.ox += @scroll_speed_x @fog.oy += @scroll_speed_y @weather.update zer0_title_fog_upd endend
Quote from: ForeverZer0 on July 25, 2011, 07:30:37 pmHere you go. Spoiler: ShowHideclass Scene_Title alias zer0_title_fog_main main def main viewport = Viewport.new(0, 0, 640, 480) # Change the value of the next line to like 10000 to have it display "over" # the windows instead of behind them viewport.z = 100 @fog = Plane.new(viewport) @weather = RPG::Weather.new(viewport) #--------------------------------------------------------------------------- # Adjust your settings for the fog here @fog.bitmap = RPG::Cache.fog('001-Fog01', 0) # Name of the fog @scroll_speed_x = 3 # Horizontal scroll speed @scroll_speed_y = 3 # Vertical scroll speed @fog.zoom_x = 1.0 # Zoom on the x-axis @fog.zoom_y = 1.0 # Zoom on the y-axis @fog.opacity = 60 # Opacity @fog.blend_type = 0 # Blendtype @fog.tone = Tone.new(0, 0, 0, 0) # Tone to blend with the bitmal @weather.type = 1 # The weather type @weather.max = 25 # The power of the weather #--------------------------------------------------------------------------- zer0_title_fog_main [@fog, viewport].each {|sprite| sprite.dispose } end alias zer0_title_fog_upd update def update @fog.ox += @scroll_speed_x @fog.oy += @scroll_speed_y @weather.update zer0_title_fog_upd endendEDIT: I just noticed you said you wanted weather there to. I'll add and update it in a second.EDIT 2: Added the weather control.
[@fog, viewport, @weather].each {|sprite| sprite.dispose }