Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #
- # * Scene_IntroFlash by Dahrkael using ç¼çœ¼çš„å¤å¨œ Flash Player
- # Adapted to Pokemon Essentials by Peaverin v1.0
- # Requires the .dll and .ocx
- #===============================================================================
- class Scene_IntroFlash
- def initialize
- # Set the file which will be played
- @file = "intro.swf"
- # Choose if the player can skip the intro (0 => false, 1 => true)
- @button = 1
- end
- def main
- # Black background
- @fondo = Sprite.new
- @fondo.bitmap = Bitmap.new(512, 384)
- @fondo.bitmap.fill_rect(0, 0, 512, 384, Color.new(0,0,0,255))
- @fondo.z = -1
- # Set flash video
- fls = RMFlash.load(@file, 512, 384)
- fls.loop = 1
- fls.z = 999999
- # Save frame rate
- @fr = Graphics.frame_rate
- # Set new frame rate
- Graphics.frame_rate = 40
- # Main loop
- Graphics.transition
- while true
- Graphics.update
- #Input.update
- fls.update
- # Skip the video using Enter
- break if @button == 1 and Keyb.trigger($keys["Enter"])
- # Skip when finished
- break if !fls.playing?
- end
- $scene = pbCallTitle
- Graphics.freeze
- # Little solution for frozen images
- fls.z = -2
- fls.dispose
- # Set old frame rate
- Graphics.frame_rate = @fr
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement