Jump to content
Rpg²S Forum

Scene Pre-Title


Peru
 Share

Recommended Posts

Nome script: Pre-Title scene

 

Autore: Vlue L. Maynara

 

Funzione:Permette di far comparire un massimo di 3 immagini con sfondo musicale compreso prima del titolo

 

Script:

 

#--------- Pretitle script ------------------------------------------#
# - A script to display up to three images before the title menu	 #
# - Configurable! Woot!											  #
#				   ###Read this before using###					 #
# - Pictures to be displayed must be placed in the \Graphics\System  #
#   folder														   #
# - Audio files to be played must be placed in the \Audio\BGM folder #
# - Must change "$scene = Scene_Title.new" under Main to			 #
#   "$scene = Scene_Pretitle.new"									#
# - To call script (why? o.0) use "$scene = Scene_Pretitle.new"	  #
#																	#
#				   Disclaimer? Give credit where credit is due	  #
#-------------------------Script written by: Vlue L. Maynara---------#

class Scene_Pretitle < Scene_Base

  ###Config###
###Failure to comply with rules will result in script failure###
 #Skip pretitles?
 PRETITLE_SKIP	   = false
 #Fadein (frames)
 PRETITLE_TRANSITION = 20
 #How long to display (frames)
 PRETITLE_WAIT	   = 40
 #Fadeout (frames)
 PRETITLE_FADEOUT	= 60
 #Music to be played, nil in none (Filename must be in quotes, ex. "Scene1")
 PRETITLE_MUSIC	  = "Scene1"
 #Volume of Music (%)
 PRETITLE_VOLUME	 = 100
 #Pitch of Music (50-150)
 PRETITLE_PITCH	  = 100
 #First file to load, nil if none (Filename must be in quotes, ex. "Gameover")
 PRETITLE_FILE	   = "Gameover"
 #Second file to load, nil if none (Filename must be in quotes, ex. "Balloon")
 PRETITLE_FILE2	  = nil
 #Third file to load, nil if none (Filename must be in quotes, ex. "Title")
 PRETITLE_FILE3	  = nil		   
###End Config###
 
#Script start# 
 
 def main
if $BTEST						 # If battle test
  $scene = Scene_Title.new		# Start battle test
else							  # If normal play
  super						   # Usual main processing
end
 end
 
 def start
if PRETITLE_SKIP
  $scene = Scene_Title.new
elsif
  create_pretitle_1
end
 end
 
 def create_pretitle_1
if PRETITLE_FILE != nil
  if PRETITLE_MUSIC != nil
	Audio.bgm_play("Audio/BGM/" + PRETITLE_MUSIC, PRETITLE_VOLUME, PRETITLE_PITCH)
  end
  @sprite1 = Sprite.new
  @sprite1.bitmap = Cache.system(PRETITLE_FILE)
  Graphics.transition(PRETITLE_TRANSITION)
  Graphics.wait(PRETITLE_WAIT)
  Graphics.fadeout(PRETITLE_FADEOUT)
  @sprite1.bitmap.dispose
  @sprite1.dispose
  create_pretitle_2
elsif
  create_pretitle_2
end
 end
 
 def create_pretitle_2
if PRETITLE_FILE2 != nil
  @sprite1 = Sprite.new
  @sprite1.bitmap = Cache.system(PRETITLE_FILE2)
  Graphics.fadein(PRETITLE_TRANSITION)
  Graphics.wait(PRETITLE_WAIT)
  Graphics.fadeout(PRETITLE_FADEOUT)
  @sprite1.bitmap.dispose
  @sprite1.dispose
  create_pretitle_3
elsif
  create_pretitle_3
end
 end
 
 def create_pretitle_3
if PRETITLE_FILE3 != nil
  @sprite1 = Sprite.new
  @sprite1.bitmap = Cache.system(PRETITLE_FILE3)
  Graphics.fadein(PRETITLE_TRANSITION)
  Graphics.wait(PRETITLE_WAIT)
  Graphics.fadeout(PRETITLE_FADEOUT)
  @sprite1.bitmap.dispose
  @sprite1.dispose
  $scene = Scene_Title.new
elsif
  $scene = Scene_Title.new
end
 end
end
#End Script#

 

 

istruzioni per l'uso:

inserite lo script tra materials e main

le immagini che volete far apparire devono essere nella cartella graphic/system,la musica in music/BGM

per selezionare le immagini da visualizzare,scrivere il loro nome negli appositi spazi nello script,idem per la musica

 

per attivare il pre-title andate su Main e sostituite la stringa

 

$scene = Scene_Title.new

 

con questa

 

$scene = Scene_Pretitle.new

 

bugs e conflitti:

N/A,utilizzabile anche con i title animati

Edited by Peru

 

e così ricopro la mia nuda perfidia con espressione a me estranea rubata ai sacri testi e sembro un santo quando faccio la parte del diavolo.

[V per Vendetta]

http://www.lusogamer.com/live/teknoplayer_v1_red/gamercard_default/obsidiam.png

Link to comment
Share on other sites

bello, credo che verrà usato sul mio progetto per inserire i copyright iniziali xD!

LA MIA FIRMA!!!

 

IO HO ADOTTATO...

 

 

MY GAME!!!

 

Nome:

Exagon - The Medallion

 

Descrizione:

Guida Markus, un orfanello, nel regno di Esate, e scopri il segreto che si cela dietro il suo medaglione esagonale, unico ricordo della defunta madre!

 

Tool:

RPG Maker VX

 

 

 

LOLLATE IN CHAT!!!

 

 

*** mib_reaper è entrato su #rpg2s

<DarkNight[settembre]>: Mumu mib_reaper, mumukkimumu

<Ape_Maia>: salve! miele?

*** mib_reaper esce (Quit: http://www.mibbit.com ajax IRC Client)

<Ape_Maia>: se non vuoi miele basta dirlo...

 

 

 

 

e ora... ARRIVA CATTIVONE!!!

 

http://img197.imageshack.us/img197/2610/cattivonecreator.png

http://img832.imageshack.us/img832/9093/cattivonefan.png

 

 

 

"EXAGOOOOOOON!!!"

Tratto da "Exagon - The Medallion"

Link to comment
Share on other sites

Carino, avevo trovato anche un altro script per gli splash screens, ma credo che sia identico XD

In ogni caso, si possono facilmente aggiungere altre immagini, facendo solo qualche piccolo edit :sisi:

Edited by JillChelsea

 

<SeraphAndrew>: identificati

<SeraphAndrew>: o ti alito in faccia

Lista degli attuali zii:

SeraphAndrew

Macha

Shuraen

ZioSam

Aretè

<JillChelsea>: Lusianl è LOL

<SeraphAndrew>: LoLusianlol

<SeraphAndrew>: E HO UN NASO CHE TI IMPALO

<SeraphAndrew>: VA BENE?

<SeraphAndrew>: è_é

Shuraen abbraccia la sua nipotina

SeraphAndrew abbraccia shu che abbraccia la nipotina

<SeraphAndrew>: siamo una fottuta matrioska!

<Annoy>: JILLA

<Annoy>: Ma a te non piacevano i gatti?

<Annoy>: D:

<BlackPanther>: Si =3

<Annoy>: Hai fatto LEVEL UP e sei passata alle pantere?

<BlackPanther>: LOL

 

Link to comment
Share on other sites

In realtà se ne possono aggiungere altre facendo dei piccoli edit XD

 

Basta che aggiungi una linea di codice come questa:

 

PRETITLE_FILE[Numero] = "Nomefile"

 

Nella parte config, facendo gli opportuni cambiamenti.

 

Mentre poi bisogna aggiungere questa parte di script:

 

def create_pretitle_[Numero]	
if PRETITLE_FILE[Numerodiprima] != nil	 
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.system(PRETITLE_FILE[Numerodiprima])	  
Graphics.fadein(PRETITLE_TRANSITION)	  
Graphics.wait(PRETITLE_WAIT)	  
Graphics.fadeout(PRETITLE_FADEOUT)	  
@sprite1.bitmap.dispose	
@sprite1.dispose	  
create_pretitle_[Numero]
elsif	  
create_pretitle_[Numero]
end
end

 

E ovviamente modificare dove bisogna modificare ^^

(La parte [Numero] va cambiata completamente, senza lasciare le parentesi quadre.)

 

Es.

 

PRETITLE_FILE4 = "Title"

 

def create_pretitle_4	
if PRETITLE_FILE4 != nil	 
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.system(PRETITLE_FILE4)	  
Graphics.fadein(PRETITLE_TRANSITION)	  
Graphics.wait(PRETITLE_WAIT)	  
Graphics.fadeout(PRETITLE_FADEOUT)	  
@sprite1.bitmap.dispose	
@sprite1.dispose	  
create_pretitle_5
elsif	  
create_pretitle_5
end
end

 

(O almeno credo XD)

Edited by JillChelsea

 

<SeraphAndrew>: identificati

<SeraphAndrew>: o ti alito in faccia

Lista degli attuali zii:

SeraphAndrew

Macha

Shuraen

ZioSam

Aretè

<JillChelsea>: Lusianl è LOL

<SeraphAndrew>: LoLusianlol

<SeraphAndrew>: E HO UN NASO CHE TI IMPALO

<SeraphAndrew>: VA BENE?

<SeraphAndrew>: è_é

Shuraen abbraccia la sua nipotina

SeraphAndrew abbraccia shu che abbraccia la nipotina

<SeraphAndrew>: siamo una fottuta matrioska!

<Annoy>: JILLA

<Annoy>: Ma a te non piacevano i gatti?

<Annoy>: D:

<BlackPanther>: Si =3

<Annoy>: Hai fatto LEVEL UP e sei passata alle pantere?

<BlackPanther>: LOL

 

Link to comment
Share on other sites

Mi sono permesso di modificare lo script per renderlo utilizzabile per un numero illimitato di picture!

Per usarlo bisogna andare in PRETITLE_FILE e inserire in ordine tra le parentesi quadre i nomi delle picture.

 

Ecco qua:

 

 

#--------- Pretitle script ------------------------------------------#
# - A script to display up to three images before the title menu	 #
# - Configurable! Woot!											  #
#				   ###Read this before using###					 #
# - Pictures to be displayed must be placed in the \Graphics\System  #
#   folder														   #
# - Audio files to be played must be placed in the \Audio\BGM folder #
# - Must change "$scene = Scene_Title.new" under Main to			 #
#   "$scene = Scene_Pretitle.new"									#
# - To call script (why? o.0) use "$scene = Scene_Pretitle.new"	  #
#																	#
#				   Disclaimer? Give credit where credit is due  

#  Edited By Avon Valentino
#-------------------------Script written by: Vlue L. Maynara---------#

class Scene_Pretitle < Scene_Base

  ###Config###
###Failure to comply with rules will result in script failure###
 #Skip pretitles?
 PRETITLE_SKIP	   = false
 #Fadein (frames)
 PRETITLE_TRANSITION = 20
 #How long to display (frames)
 PRETITLE_WAIT	   = 40
 #Fadeout (frames)
 PRETITLE_FADEOUT	= 60
 #Music to be played, nil in none (Filename must be in quotes, ex. "Scene1")
 PRETITLE_MUSIC	  = "Scene1"
 #Volume of Music (%)
 PRETITLE_VOLUME	 = 100
 #Pitch of Music (50-150)
 PRETITLE_PITCH	  = 100
 #List of file to load in order
 PRETITLE_FILE	   = ["Save","Window"]		
###End Config###
 
#Script start#
 
 def main
if $BTEST						 # If battle test
  $scene = Scene_Title.new		# Start battle test
else							  # If normal play
  super						   # Usual main processing
end
 end
 
 def update
if PRETITLE_SKIP
  $scene = Scene_Title.new
else
  if PRETITLE_MUSIC != nil
	Audio.bgm_play("Audio/BGM/" + PRETITLE_MUSIC, PRETITLE_VOLUME, PRETITLE_PITCH)
  end
  Graphics.fadeout(0)
  for i in PRETITLE_FILE
  create_pretitle(i)
end
$scene = Scene_Title.new
end
 end
 
 def create_pretitle(imm)
if imm != nil
  @sprite = Sprite.new
  @sprite.bitmap = Cache.system(imm)
  Graphics.fadein(PRETITLE_FADEOUT)
  Graphics.transition(PRETITLE_TRANSITION)
  Graphics.wait(PRETITLE_WAIT)
  Graphics.fadeout(PRETITLE_FADEOUT)
  @sprite.bitmap.dispose
  @sprite.dispose
  @sprite = nil
end
 end
 
end
#End Script#

 

Link to comment
Share on other sites

Be lo scene intro e simile ma più facile...

Imposti il nome esempio intro nello script e nella cartella system (se nn erro cartella) metti le immagini intro1 intro2 intro3 intro4 intro5 intro6 eccecc e stop... Senza modificare lo script... Cmq ora che è modificato no problem...

http://i.imgur.com/ROhv4te.png



287x66-white.png

Link to comment
Share on other sites

Ma meglio ancora lo Skip_Title di Woratana: al costo di una Mappa ci puoi buttare dentro tutto ciò che vuoi . . .

 


SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]


Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !!

 


http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gif


Non riesco a smettere di essere affascinato da immagini come questa . . .

http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpg


Alcuni wallpapers che faccio ruotare sul mio vecchio PC . . .


http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpg

http://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpg
http://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpg
http://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg


La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . .


BBCode Testing


Typeface & Size



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...