• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Flash Intro before Title Screen

Status
Not open for further replies.
50
Posts
10
Years
  • Age 30
  • Seen Apr 20, 2014
Hi, today I bring you this nice script that makes you able to insert a .swf flash intro before the title screen. This system works also with non-Essentials projects, but the tutorial is for Essentials.
There's also a video to show movies in AVI format, but they're hard to work with and their size is 10x bigger and bad quality, so using flash is the best option.
This is an example of my intro flash:

Okay, let's start:
1. Insert this two scripts above main and DOWNLOAD THIS(click here) and extract it into your root folder(the folder with the game.exe of your project).
Note that the scripts have been adapted to work with Pokemon Essentials. If you want them to work in rpg maker xp but without pokemon essentials engine you'll have to modify some things. PM me if it's your case.
This first one is for the movies to work (additional instructions are inside the script if you want to play a video using an event).
Spoiler:
This second script is the script we will call in main to show the video before the title screen:
Spoiler:

2.Go to the script Main and by line 35 you'll found something like:
Code:
$scene = pbCallTitle
Erase that line and write instead:
Code:
$scene = Scene_IntroFlash.new

3.Optional:
If you don't wan't any pic to show after the flash and you want the Title Screen with the press start message appear JUST AFTER THE VIDEO(like ruby or emerald), go to the script Scene_Intro and where it appears:
Code:
openPic(self,nil)
Erase or comment out the line(comment out means writing this # before the line) and write instead:
Code:
    @timer=0 # reset the timer
    openSplash(self,nil)

ADDITIONAL NOTES: You can create your intro in .mp4 format with a program like Camtasia Studio 7 or 8 and then use a file converter(search it at google) to convert your mp4 to swf. Remember that the screen size is 512x384, but you can use a smaller video if you want and it will show anyways.

That's all at the moment. I think i don't miss anything. Post any problems here.
 
Last edited:
68
Posts
11
Years
  • Seen Jan 17, 2017
i have a erro in Main and line 35 :S
VM4ZBuf.jpg
 
Last edited:

Dylanrockin

That guy
276
Posts
12
Years
  • Age 28
  • Seen Jun 9, 2016
Teacher, I have a question! Do I have to create a subfolder called "Flash" in the main section of my folders, or would I put them in the graphics folder? Also, I got this error on startup, I'm not quite sure what it means though. I'm a tad noob-status at this kind of stuff ^.^;

---------------------------
Pokemon: Symphonic Horizon
---------------------------
Exception: NameError

Message: uninitialized constant Scene_IntroFlash

Main:35:in `mainFunctionDebug'

Main:15:in `mainFunction'

Main:15:in `pbCriticalCode'

Main:15:in `mainFunction'

Main:47

Main:46:in `loop'

Main:55



This exception was logged in

C:\Users\Dylan\Saved Games/Pokemon_ Symphonic Horizon/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 
68
Posts
11
Years
  • Seen Jan 17, 2017
Teacher, I have a question! Do I have to create a subfolder called "Flash" in the main section of my folders, or would I put them in the graphics folder? Also, I got this error on startup, I'm not quite sure what it means though. I'm a tad noob-status at this kind of stuff ^.^;

---------------------------
Pokemon: Symphonic Horizon
---------------------------
Exception: NameError

Message: uninitialized constant Scene_IntroFlash

Main:35:in `mainFunctionDebug'

Main:15:in `mainFunction'

Main:15:in `pbCriticalCode'

Main:15:in `mainFunction'

Main:47

Main:46:in `loop'

Main:55



This exception was logged in

C:\Users\Dylan\Saved Games/Pokemon_ Symphonic Horizon/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

you have to create a subfolder called Flash , but i did that and i have the same error :S
 
50
Posts
10
Years
  • Age 30
  • Seen Apr 20, 2014
Teacher, I have a question! Do I have to create a subfolder called "Flash" in the main section of my folders, or would I put them in the graphics folder? Also, I got this error on startup, I'm not quite sure what it means though. I'm a tad noob-status at this kind of stuff ^.^;

---------------------------
Pokemon: Symphonic Horizon
---------------------------
Exception: NameError

Message: uninitialized constant Scene_IntroFlash

Main:35:in `mainFunctionDebug'

Main:15:in `mainFunction'

Main:15:in `pbCriticalCode'

Main:15:in `mainFunction'

Main:47

Main:46:in `loop'

Main:55



This exception was logged in

C:\Users\Dylan\Saved Games/Pokemon_ Symphonic Horizon/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
Oh, I made a mistake and I copied the same script two times.
The correct Scene_IntroFlash is this one:
Spoiler:
So you have to change the second script by this one. Now it should work without problems.
 
13
Posts
9
Years
  • Age 39
  • Seen Mar 11, 2020
Help , I need to see the video in a type ds game, the screen is 512x784 , and you change all the parameters , the video is focused, but not visible in full screen
 
220
Posts
9
Years
Hello, I'm having this error when i used it in an event:

event_10.png


I put the required files in my game project folder,
I created in Graphics folder a folder called Flash,
And i put only your first script "(This first one is for the movies to work (additional instructions are inside the script if you want to play a video using an event))". Above MAIN.
And i called this way in an event --> $flash.play("Intro.swf",1)

How can i fix the error?
______________________________________________________________________________________________________________________
I fixed that error but, when i call the script nothing happens. And i'm using videos in swf format.
Did i missed something?
 
Last edited:
91
Posts
14
Years
  • Age 32
  • Seen Sep 5, 2015
Hello, I'm having this error when i used it in an event:

event_10.png


I put the required files in my game project folder,
I created in Graphics folder a folder called Flash,
And i put only your first script "(This first one is for the movies to work (additional instructions are inside the script if you want to play a video using an event))". Above MAIN.
And i called this way in an event --> $flash.play("Intro.swf",1)

How can i fix the error?
______________________________________________________________________________________________________________________
I fixed that error but, when i call the script nothing happens. And i'm using videos in swf format.
Did i missed something?

Wild guess... This is only usable for the intro without modifying it yourself.
 
220
Posts
9
Years
Lolandbeer, it is not only for intro movies.
Peaverin mentioned this phrase: "This first one is for the movies to work (additional instructions are inside the script if you want to play a video using an event)."
So i think that i can use this script for game events too.
 

ReVaN777

Creator of Pokemon Titanium
108
Posts
12
Years
hello, i followed each step, and im getting an invisible error

---------------------------
Pokemon Titaium
---------------------------
Script 'Main' line 37: SyntaxError occurred.
---------------------------
OK
-------------------


and heres my code lines 23 - 51

Code:
    Graphics.freeze
  end
end




$scene = Scene_IntroFlash.new #:nodoc:
  if $DEBUG
    return Scene_DebugIntro.new
  else
    # First parameter is an array of images in the Titles
    # directory without a file extension, to show before the
    # actual title screen.  Second parameter is the actual
    # title screen filename, also in Titles with no extension.
    return Scene_Intro.new(['intro1'], 'splash') 
  end
end

def mainFunction #:nodoc:
 

ReVaN777

Creator of Pokemon Titanium
108
Posts
12
Years
fix problem i had with the main script but now i have this error

---------------------------
Pokemon Titaium
---------------------------
Script 'SpriteWindow' line 1086: Errno::ENOENT occurred.

No such file or directory - Audio/SE/Audio/SE/153Cry.wav
---------------------------
OK
---------------------------

a little help would be awesome. the path is correct and everything is in there.
 
10
Posts
7
Years
  • Age 20
  • Seen Jun 18, 2019
---------------------------
Pokémon Parts of Volcan
---------------------------
Exception: NameError

Message: uninitialized constant Scene_IntroFlash::RMFlash

Scene B:23:in `main'

Main:49:in `mainFunctionDebug'

Main:27:in `mainFunction'

Main:27:in `pbCriticalCode'

Main:27:in `mainFunction'

Main:59

Main:58:in `loop'

Main:67



This exception was logged in

C:\Users\Derlan\Saved Games/Pokémon Parts of Volcan/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

Help?
 
Status
Not open for further replies.
Back
Top