Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
NightmareFelix

Help me straighten out my Skippable Splash Screens.

Recommended Posts

Below is a chunk of my "Scene_Title" page. I have added this just under the creation of everything in the Scene_Title class and before the Main Menu appears.

 

This script is supposed to make 3 splash screens that fade in on an effect; (one for RMXP, one for my studio and one for Bon Ink) and they're supposed to be skippable by pressing the action key. But the skippability seems really inconsistent and I just can't figure it all out. Someone please read over it and tell me what I"m doing wrong.

 

 

sprite = Sprite.new
sprite.bitmap = RPG::Cache.picture('rpg maker xp')
Graphics.transition(50, "Graphics/Transitions/010-random02")
count = 0
while count < 150 # 5 seconds
 break if Input.trigger?(Input::C)
 Graphics.update
 count += 1
end
Graphics.freeze
sprite.dispose
   # BGM
   $game_system.bgm_play($data_system.title_bgm)
sprite = Sprite.new
sprite.bitmap = RPG::Cache.picture('blackcity1')
Graphics.transition(50, "Graphics/Transitions/010-random02")
count = 0
while count < 200 # 5 seconds
 break if Input.trigger?(Input::C)
 Graphics.update
 count += 1
end
Graphics.freeze
sprite.dispose
sprite = Sprite.new
sprite.bitmap = RPG::Cache.picture('bonink')
Graphics.transition(50, "Graphics/Transitions/010-random02")
count = 0
while count < 200 # 5 seconds
 break if Input.trigger?(Input::C)
 Graphics.update
 count += 1
end
Graphics.freeze
sprite.dispose
   @sprite = Sprite.new
   @sprite.bitmap = RPG::Cache.title($data_system.title_name)
   Graphics.transition(50, "Graphics/Transitions/010-random02")
   s1 = "New Game"
   s2 = "Load Game"
   s3 = "Quit"

Share this post


Link to post
Share on other sites

is this a part of an update method or the main proccess? it looks like it the main proccess as your using the loops to proccess the images, which confuses me where id your Input.update ? really you should call it in each loop before each input check in order for the check to be successful at that frame in time

Edited by diagostimo

Share this post


Link to post
Share on other sites

is this a part of an update method or the main proccess? it looks like it the main proccess as your using the loops to proccess the images, which confuses me where id your Input.update ? really you should call it in each loop before each input check in order for the check to be successful at that frame in time

 

Dude. 3 freaking lines. Thank you so much.

 

I really don't know why I didn't think about Input.update.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...