Advertisement
kurashi

Title Fog Add-on- RAFAEL_SOL_MAKER's ACE PERFECT FOG [RGSS3]

May 6th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.95 KB | None | 0 0
  1. #Requires the module information from the RAFAEL_SOL_MAKER's ACE PERFECT FOG script.
  2. #Created by Kio Kurashi
  3. #No credit for this is required by me however RAFAEL_SOL_MAKER's script
  4. #may have requirements that must be met if the script is used.
  5.  
  6. #Place below Materials but above Main.
  7.  
  8. class Scene_Title < Scene_Base
  9.   alias kurashi_title_fog_addon start
  10.   def start
  11.     kurashi_title_fog_addon
  12.     create_fog
  13.   end
  14.  
  15.  
  16.   def create_fog
  17.     @fog = Plane.new
  18.     @fog.bitmap = Cache.fog(PPVXAce_General_Configs::Fog_Filename)
  19.     @fog.z = 3
  20.     @fog.opacity = PPVXAce_General_Configs::Fog_Opacity
  21.     @fog.bitmap.hue_change(PPVXAce_General_Configs::Fog_Hue)
  22.   end
  23.  
  24.   def update_basic
  25.     Graphics.update
  26.     Input.update
  27.     update_all_windows
  28.     @fog.ox += PPVXAce_General_Configs::Fog_SpeedX
  29.     @fog.oy += PPVXAce_General_Configs::Fog_SpeedY
  30.   end
  31.  
  32.   def dispose_all_used_graphics
  33.     fog.bitmap.dispose
  34.     fog.dispose
  35.   end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement