iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
 
Reply to this topicStart new topic
> Delay Time Transitions
Twilight Fox
post Aug 3 2012, 06:00 PM
Post #1



Group Icon


Type: Writer
Alignment: Unaligned




OK! This the Twilight Fox and I am looking for a script or two to try something new with game I am making, a second part to a game I already made. ANYWHO! I want to know is there a script(s) that will preform the following actions.

1: Delay the display of the title screen until qued in to match with music. (Can give music link if needed)

2: Delay the battle scene until qued by music. (Can also give link to show timing.)

I am currently running RPG Maker VX
Game Title/Code Name "Blast 2 - Dark Dimension".


--------------------
I am the fox. I am the Storyteller. I am Professional grade!
Go to the top of the page
 
+Quote Post
   
DP3
post Aug 3 2012, 06:51 PM
Post #2


Swinging a chain in a town near you.
Group Icon


Type: Writer
Alignment: Lawful Neutral




Spoiler:
CODE
module QueMusicWaitTime
  
  TITLESCREEN_WAIT_TIME = 400 # you'll need to play around with this.
  
  BATTLESCENE_WAIT_TIME = 400 # you'll need to play around with this.
  
end






class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    load_database                     # Load database
    create_game_objects               # Create game objects
    check_continue                    # Determine if continue is enabled
    play_title_music                  # Play title screen music
    Graphics.wait(QueMusicWaitTime::TITLESCREEN_WAIT_TIME) # Que for music
    create_title_graphic              # Create title graphic
    create_command_window             # Create command window    
  end
end



class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    Graphics.wait(QueMusicWaitTime::BATTLESCENE_WAIT_TIME)
    $game_temp.in_battle = true
    @spriteset = Spriteset_Battle.new
    @message_window = Window_BattleMessage.new
    @action_battlers = []
    create_info_viewport
  end
end



I believe this will do what you want.


--------------------
Go to the top of the page
 
+Quote Post
   
Twilight Fox
post Aug 3 2012, 09:50 PM
Post #3



Group Icon


Type: Writer
Alignment: Unaligned




Thanks! After quiet a bit of tinkering I got the script to work nicely! Thanks a bunch!


--------------------
I am the fox. I am the Storyteller. I am Professional grade!
Go to the top of the page
 
+Quote Post
   

Fast ReplyReply 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: 2nd September 2014 - 03:25 AM

RPGMakerVX.net is an Privacy Policy, Legal.