Advertisement
LiTTleDRAgo

[RGSS/2/3] Simple Splash Screen

Jun 30th, 2012
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.61 KB | None | 0 0
  1. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  2. # [Xp/VX-VXA] Simple Splash Screen
  3. # Version: 1.00
  4. # Author : LiTTleDRAgo
  5. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:  
  6. SPLASH_IMAGE = 's2'
  7.  
  8. begin
  9.   sprite = Sprite.new
  10.   cache = defined?(Window_ActorCommand) ? Cache : RPG::Cache
  11.   sprite.bitmap = cache.picture(SPLASH_IMAGE)
  12.   Graphics.transition
  13.   (0..120).each {|i| [Graphics,Input].each {|s| s.update}
  14.           sprite.opacity -= 5 if i > 40
  15.           break if Input.trigger?(Input::C) || sprite.opacity <= 0}
  16.   sprite.dispose
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement