Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Movie Intro! + Splash Screen + (Optional) AutoFullScreen >>[v2.0]<<, Showing .avi video intros, images and playing sound at game start ^_^
huntoxic
post Aug 19 2009, 05:44 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




Nabu's Splash Screen script

With optional Automatic Full Screen

V 2.0
Nabu [this is me]
(used trebor 777's avi player script!)
22. Aug. '09


Exclusive Script at RPG RPG Revolution

Introduction
-With this script you can show "Splash Screens" at the beginning of the game (e.g: game publisher, credits, etc..). If you turn it on, you can make the game to full screen automatic.
- Now you can play intro movies too!

Features
v 2.0
- New form, easy to install, everything in Modules
- Plug'nPlay
- Playing movies

v1.1b
- Another bugfix -.-
- Organized comments

v1.1
-Now you can play sounds smile.gif

v1.0
-Up to 9 splash screens
-Fully configurable

Script
[Show/Hide] Install it above main

CODE

#==============================================================================
# Splash Screen Script + Auto Full Screen v2.0
# + Movie Intro!
# by Nabu (huntoxic@gmail.com)
#
#
# Original Script Homepage:
# http://www.rpgrevolution.com/forums/index....showtopic=34238
#
# Used up trebor777's Avi player script. Dont forget to credit him!
#==============================================================================
#
# ****Changelog****
#
# v2.0
# - New form
# [+]Easier to install, plug 'n play
# [+]Everything in modules
# - Ability to SHOW MOVIES !!!
# v1.1b
# - Another bugfix -.-
# - Organized comments
# v1.1
# - Added sound effects
# - Small bugfix
# v1.0 (first published version)
# - Fully configurable
# - Auto Full Screen
# - Added transition
# ???? (not published)
# - Showing pictures w/o transition and config
# - Auto full screen
#------------------------------------------------------------------------------

# ***********************
# * Config Section! *
# ***********************

module SplashConfig

# When true: automatic full screen at game start
AutoFullScreen = true

# Amount of the splash screens showd at game start. Max 9!
NumOfScreens = 2

# Amount of the Movie intros at the game start. Max 9! (why?? o,O)
NumOfMovies = 1

#Length of the transition in frames
TransitionLen = 100

#Length of the fadeout / fadein in frames
FadeoutLen = 180


# Now add your splash screen filenames
# Don't forget the comma after each line (except last)!!!
# Put the files into <game folder>\Graphics\Pictures
# Best resolution: 544 x 416 pixels.

FileNames =
[
"Splash1.png",
"Splash2.png" #,
#"WhatYouWant.png,
#"AnotheRsPLashScrEEn^_^.png,
#.......... etc

] # don't remove this

# Now set the wait time after each screen. (in frames - 60 frames = 1 sec)
# Use the same form as by the fileNames

WaitTime =
[
120,
150 #,
#200,
#100,
#etc

] # don't remove this


# Now add the sound effects
# Specify full path plz...
# . -> Game Folder

SplashBGM =
[

"./Audio/BGM/video_NEW.mp3",
"./Audio/BGM/video_NEW.mp3" #,
#"MoreSplashSoundsHere.ogg",
#".......mp3"

] # don't remove this

# Last part: define your video files.
# Please read the instructions on the forum carefully
# DO NOT WRITE .avi (the extension). It will be added automatically!

IntroMovie =
[

"StoryX",
#"More",
#"...."

] # don't remove this


# ******************************
# * End of config section! *
# ******************************
end
#==============================================================================
# Do not modify the script without permission. Please!
# - - - - - - - - - - - - - - - - - - - - - - - - - -

module Nabu_Splash_Script
NumOfScreens = SplashConfig::NumOfScreens
NumOfMovies = SplashConfig::NumOfMovies
FadeoutLen = SplashConfig::FadeoutLen
TransitionLen = SplashConfig::TransitionLen

FileNames = []
WaitTime = []
SplashBGM = []
IntroMovie = []

FadeOut = FadeoutLen / 60 # 1, Frame to sec
FadeOut = FadeOut * 1000 # 2, Sec to millisec

def self.Activate_1
if SplashConfig::AutoFullScreen then
$showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
$showm.call(18,0,0,0)
$showm.call(13,0,0,0)
$showm.call(13,0,2,0)
$showm.call(18,0,2,0)
Graphics.freeze
end
end


def self.Activate_2
nx = 0
if NumOfScreens > 0
while nx < (NumOfScreens)
FileNames[nx] = SplashConfig::FileNames[nx]
WaitTime[nx] = SplashConfig::WaitTime[nx]
SplashBGM[nx] = SplashConfig::SplashBGM[nx]
if FileNames[nx] != ""
if FileNames[nx] != nil
@image = Sprite.new # Creating sprite object
Audio.bgm_play(SplashBGM[nx])
@image.bitmap = Cache.picture(FileNames[nx])
Graphics.transition(TransitionLen)
if WaitTime[nx] < 1 then WaitTime[nx] = 60 end
Graphics.wait(WaitTime[nx])
Graphics.fadeout(FadeoutLen)
Audio.bgm_fade(FadeOut)
@image.bitmap.dispose
@image.dispose
Graphics.fadein(FadeoutLen)

end
end
nx = nx + 1
end
end
end

def self.Activate_3
nnx = 0
while nnx < (NumOfMovies)
IntroMovie[nnx] = SplashConfig::IntroMovie[nnx]
Graphics.fadein(10)
Movie.play(IntroMovie[nnx])
Graphics.fadeout(10)
nnx = nnx + 1
end
end
end



[Show/Hide] Install INTO main (read "Installation" part)

CODE

#===============================
# Nabu's Splash Screen Script
#---- --- -- -- - -
Nabu_Splash_Script.Activate_1
Nabu_Splash_Script.Activate_2

Nabu_Splash_Script.Activate_1
Nabu_Splash_Script.Activate_1

Nabu_Splash_Script.Activate_3

Nabu_Splash_Script.Activate_1
Graphics.fadein(60)
#===============================




Customization
Customize it in the custiomization part.

Compatibility
:\ I don't know, but i think, it is compatible with any script that doesn't modify Main

Screenshot
Do you really need it? o.O

DEMO
None... Why do you need?

Installation
  1. Install trebor777's Avi Player script (anywhere above main):
    trebor777's .avi player script
  2. Install the SplashScreen script above main
  3. Install the "Main" script into main between begin and $scene=$scene_title.new
  4. AVI's MUST have an FPS of 24. Else it will be crazy... X.o




FAQ
Q: Where to place Pictures?
A: <Game Folder>\Graphics\Pictures

Q: What is the best resolution for images?
A: 544x416 pixels

Q: Where to place Movies?
A: Create the directory:<Game Folder>\Movies


Terms and Conditions
Feel free to use. Please don't modify, and only publish as a link to this, and trebor777's page!

Credits
Nabu happy.gif
trebor777

This post has been edited by huntoxic: Aug 22 2009, 11:03 AM
Go to the top of the page
 
+Quote Post
   
zolaga
post Aug 19 2009, 08:13 AM
Post #2


The Dazzler
Group Icon

Group: Revolutionary
Posts: 245
Type: Writer
RM Skill: Intermediate




Looks decent, I'll find out and comment when I get home later.


__________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clicking this link gives me $0.50
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Facebook Account - Timothy Rosenberg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Go to the top of the page
 
+Quote Post
   
Dias
post Aug 19 2009, 08:52 PM
Post #3


Level 2
Group Icon

Group: Member
Posts: 26
Type: Writer
RM Skill: Intermediate




QUOTE (zolaga @ Aug 19 2009, 09:13 AM) *
Looks decent, I'll find out and comment when I get home later.


How would I go about getting a sound to play while the splash appears, then stop when it fades out?


__________________________
Go to the top of the page
 
+Quote Post
   
huntoxic
post Aug 22 2009, 01:16 AM
Post #4


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (Dias @ Aug 20 2009, 06:52 AM) *
QUOTE (zolaga @ Aug 19 2009, 09:13 AM) *
Looks decent, I'll find out and comment when I get home later.


How would I go about getting a sound to play while the splash appears, then stop when it fades out?


Good idea, going to post the new enhanced version now. smile.gif


__________________________
Go to the top of the page
 
+Quote Post
   
Speed@
post Aug 23 2009, 04:52 AM
Post #5


Level 12
Group Icon

Group: Revolutionary
Posts: 203
Type: None
RM Skill: Undisclosed




Splash can be created by KGC's script, as for the Intro Movie, there's a new problem, most game makers that work on RPG Maker have no graphic tallent or little tallent to make a intro movie...

That's my opinion, but I'll probably use it and create my own movie biggrin.gif
Go to the top of the page
 
+Quote Post
   
huntoxic
post Aug 23 2009, 10:57 PM
Post #6


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (Speed@ @ Aug 23 2009, 02:52 PM) *
Splash can be created by KGC's script, as for the Intro Movie, there's a new problem, most game makers that work on RPG Maker have no graphic tallent or little tallent to make a intro movie...

That's my opinion, but I'll probably use it and create my own movie biggrin.gif


Ok, that's right, but i won't delete this script smile.gif.

Thanks happy.gif


__________________________
Go to the top of the page
 
+Quote Post
   
Speed@
post Aug 24 2009, 01:02 AM
Post #7


Level 12
Group Icon

Group: Revolutionary
Posts: 203
Type: None
RM Skill: Undisclosed




QUOTE (huntoxic @ Aug 23 2009, 11:57 PM) *
QUOTE (Speed@ @ Aug 23 2009, 02:52 PM) *
Splash can be created by KGC's script, as for the Intro Movie, there's a new problem, most game makers that work on RPG Maker have no graphic tallent or little tallent to make a intro movie...

That's my opinion, but I'll probably use it and create my own movie biggrin.gif


Ok, that's right, but i won't delete this script smile.gif.

Thanks happy.gif

Well the script is great, but most people using RPG Maker don't have the skill for a movie. You shouldn't delete it.
I'll make something in Flash in the next month and will tell you how it works.

~Speed@
Go to the top of the page
 
+Quote Post
   
huntoxic
post Aug 24 2009, 02:45 AM
Post #8


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (Speed@ @ Aug 24 2009, 11:02 AM) *
QUOTE (huntoxic @ Aug 23 2009, 11:57 PM) *
QUOTE (Speed@ @ Aug 23 2009, 02:52 PM) *
Splash can be created by KGC's script, as for the Intro Movie, there's a new problem, most game makers that work on RPG Maker have no graphic tallent or little tallent to make a intro movie...

That's my opinion, but I'll probably use it and create my own movie biggrin.gif


Ok, that's right, but i won't delete this script smile.gif.

Thanks happy.gif

Well the script is great, but most people using RPG Maker don't have the skill for a movie. You shouldn't delete it.
I'll make something in Flash in the next month and will tell you how it works.

~Speed@

ty


__________________________
Go to the top of the page
 
+Quote Post
   
Zero2007
post Oct 6 2009, 03:51 AM
Post #9


Level 6
Group Icon

Group: Member
Posts: 79
Type: Event Designer
RM Skill: Skilled




hey great script dude!
I love it, but there is only on problem... Whenever it changes to as new splash it just pops up instead of fading in...
Could you fix that?
Go to the top of the page
 
+Quote Post
   
Kikojui
post Oct 6 2009, 11:29 AM
Post #10


Level 10
Group Icon

Group: Revolutionary
Posts: 156
Type: Artist
RM Skill: Advanced




Ummm I'm in the process of making my 3D intro for my game, Will this play, and also is it only .avi that is playable? Just out of curiosity?


__________________________
Go to the top of the page
 
+Quote Post
   
Shadow_Satey
post Oct 17 2009, 11:30 PM
Post #11


Level 6
Group Icon

Group: Member
Posts: 88
Type: Writer
RM Skill: Skilled




No DEMO = FAIL.


__________________________
"An ocelet never lets his prey escape."
Go to the top of the page
 
+Quote Post
   
jays
post Oct 22 2009, 06:26 AM
Post #12



Group Icon

Group: Member
Posts: 1
Type: None
RM Skill: Undisclosed




This looks good. I'll try it out and see if it works fine for me.


Regards,
Jays
Simulation pret immobilier
Go to the top of the page
 
+Quote Post
   
huntoxic
post Oct 25 2009, 02:55 PM
Post #13


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (Kikojui @ Oct 6 2009, 09:29 PM) *
Ummm I'm in the process of making my 3D intro for my game, Will this play, and also is it only .avi that is playable? Just out of curiosity?

Yes, it will play, but only .avi with 24 FPS


QUOTE (Zero2007 @ Oct 6 2009, 01:51 PM) *
hey great script dude!
I love it, but there is only on problem... Whenever it changes to as new splash it just pops up instead of fading in...
Could you fix that?


:\ I don't understand... It works fine at me...


__________________________
Go to the top of the page
 
+Quote Post
   
WillH3iZ
post Oct 25 2009, 05:15 PM
Post #14


Level 2
Group Icon

Group: Member
Posts: 16
Type: Mapper
RM Skill: Intermediate




I input the script as said and yet nothing happens. I start the game and all I get is a blank screen yet when i press the cancel button it goes to the start menu of my game. Can you explain this?


__________________________
____________________________________________________________
Go to the top of the page
 
+Quote Post
   
huntoxic
post Oct 25 2009, 11:08 PM
Post #15


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (WillH3iZ @ Oct 26 2009, 03:15 AM) *
I input the script as said and yet nothing happens. I start the game and all I get is a blank screen yet when i press the cancel button it goes to the start menu of my game. Can you explain this?

Could you send a small demo, please?


__________________________
Go to the top of the page
 
+Quote Post
   
huntoxic
post Oct 27 2009, 01:25 AM
Post #16


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (Shadow_Satey @ Oct 18 2009, 08:30 AM) *
No DEMO = FAIL.


NO DEMO = Don't want to upload video (its a bit large...)
If you don't believe it, don't use it...


__________________________
Go to the top of the page
 
+Quote Post
   
dorky106
post Nov 12 2009, 12:07 AM
Post #17


Level 11
Group Icon

Group: Revolutionary
Posts: 183
Type: Developer
RM Skill: Beginner




you should think about a end game video for credits or end game scenes (would make credits alot easier)


__________________________
Go to the top of the page
 
+Quote Post
   
huntoxic
post Nov 12 2009, 04:24 AM
Post #18


Level 1
Group Icon

Group: Member
Posts: 12
Type: Artist
RM Skill: Intermediate




QUOTE (dorky106 @ Nov 12 2009, 09:07 AM) *
you should think about a end game video for credits or end game scenes (would make credits alot easier)

Just a Movie.play event at the end of the game. Or do you mean game over?


__________________________
Go to the top of the page
 
+Quote Post
   
deffenex
post Nov 29 2009, 10:01 AM
Post #19


Level 5
Group Icon

Group: Member
Posts: 74
Type: None
RM Skill: Undisclosed




could it be edited so that the images fade in.
Go to the top of the page
 
+Quote Post
   
Zero2007
post Nov 30 2009, 05:01 AM
Post #20


Level 6
Group Icon

Group: Member
Posts: 79
Type: Event Designer
RM Skill: Skilled




QUOTE (deffenex @ Nov 29 2009, 01:01 PM) *
could it be edited so that the images fade in.


Yeah I'm Having the same problem...
Go to the top of the page
 
+Quote Post
   

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 04:01 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker