Help - Search - Members - Calendar
Full Version: how to animated before title screen
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
shadowpirate
i can't make animation before title screen please help me..!! cool.gif
stripe103
What do you mean with before title screen?
darkhalo
Hmm, not much of a description there....sounds more like a script problem than anything.
You need to be more specific.
stripe103
Yea, but I think that I know what he was looking for.
A Cutscene Script
Here is an easy one
[Show/Hide] The Script
CODE
#==============================================================================
# *  Scene_Cutscene
#==============================================================================
# CONFIGURATION
#
# Which Map ID is the Cutscene Event(s) located on?
MAP_ID = 001

# Where on the map do you want the player to appear?
MAP_X = 0
MAP_Y = 0
#
# Configuration end
#==============================================================================

class Scene_Cutscene

  def main
if $BTEST
     battle_test
     return
   end
   # Load database
   $data_actors        = load_data("Data/Actors.rxdata")
   $data_classes       = load_data("Data/Classes.rxdata")
   $data_skills        = load_data("Data/Skills.rxdata")
   $data_items         = load_data("Data/Items.rxdata")
   $data_weapons       = load_data("Data/Weapons.rxdata")
   $data_armors        = load_data("Data/Armors.rxdata")
   $data_enemies       = load_data("Data/Enemies.rxdata")
   $data_troops        = load_data("Data/Troops.rxdata")
   $data_states        = load_data("Data/States.rxdata")
   $data_animations    = load_data("Data/Animations.rxdata")
   $data_tilesets      = load_data("Data/Tilesets.rxdata")
   $data_common_events = load_data("Data/CommonEvents.rxdata")
   $data_system        = load_data("Data/System.rxdata")
   # Make system object
   $game_system = Game_System.new
   # Reset frame count for measuring play time
   Graphics.frame_count = 0
   # Make each type of game object
   $game_temp          = Game_Temp.new
   $game_system        = Game_System.new
   $game_switches      = Game_Switches.new
   $game_variables     = Game_Variables.new
   $game_self_switches = Game_SelfSwitches.new
   $game_screen        = Game_Screen.new
   $game_actors        = Game_Actors.new
   $game_party         = Game_Party.new
   $game_troop         = Game_Troop.new
   $game_map           = Game_Map.new
   $game_player        = Game_Player.new
   # Set up initial party
   $game_party.setup_starting_members
   # Set up initial map position
   $game_map.setup(MAP_ID)
   # Move player to initial position
   $game_player.moveto(MAP_X, MAP_Y)
   # Refresh player
   $game_player.refresh
   # Run automatic change for BGM and BGS set with map
   $game_map.autoplay
   # Update map (run parallel process event)
   $game_map.update
   # Switch to map screen
   $scene = Scene_Map.new
end
#--------------------------------------------------------------------------
# * Battle Test
#--------------------------------------------------------------------------
def battle_test
   # Load database (for battle test)
   $data_actors        = load_data("Data/BT_Actors.rxdata")
   $data_classes       = load_data("Data/BT_Classes.rxdata")
   $data_skills        = load_data("Data/BT_Skills.rxdata")
   $data_items         = load_data("Data/BT_Items.rxdata")
   $data_weapons       = load_data("Data/BT_Weapons.rxdata")
   $data_armors        = load_data("Data/BT_Armors.rxdata")
   $data_enemies       = load_data("Data/BT_Enemies.rxdata")
   $data_troops        = load_data("Data/BT_Troops.rxdata")
   $data_states        = load_data("Data/BT_States.rxdata")
   $data_animations    = load_data("Data/BT_Animations.rxdata")
   $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
   $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
   $data_system        = load_data("Data/BT_System.rxdata")
   # Reset frame count for measuring play time
   Graphics.frame_count = 0
   # Make each game object
   $game_temp          = Game_Temp.new
   $game_system        = Game_System.new
   $game_switches      = Game_Switches.new
   $game_variables     = Game_Variables.new
   $game_self_switches = Game_SelfSwitches.new
   $game_screen        = Game_Screen.new
   $game_actors        = Game_Actors.new
   $game_party         = Game_Party.new
   $game_troop         = Game_Troop.new
   $game_map           = Game_Map.new
   $game_player        = Game_Player.new
   # Set up party for battle test
   $game_party.setup_battle_test_members
   # Set troop ID, can escape flag, and battleback
   $game_temp.battle_troop_id = $data_system.test_troop_id
   $game_temp.battle_can_escape = true
   $game_map.battleback_name = $data_system.battleback_name
   # Play battle start SE
   $game_system.se_play($data_system.battle_start_se)
   # Play battle BGM
   $game_system.bgm_play($game_system.battle_bgm)
   # Switch to battle screen
   $scene = Scene_Battle.new
end
end

This don't overwrite the original Scene_Title so you can use those two together if you want.
The only thing you need to do is go into Main in the scripts and change the line:
CODE
  # Make scene object (title screen)
  $scene = Scene_Title.new

into
CODE
  # Make scene object (title screen)
  $scene = Scene_Cutscene.new

and of course change the configuration in the top of the script.

I haven't tried it so tell me if it works or not.
Jamopc
QUOTE (shadowpirate @ Feb 24 2010, 04:33 PM) *
i can't make animation before title screen please help me..!! cool.gif


It's possible to do an animated sequence before the title not using a script also though, I managed to make one using events, it starts after 10 seconds (240 frames) into the title screen and auto-starts when the game is first loaded, kind of like you see on normal games. It can also be skipped by pressing any key.

The title screen in my game however is not the standard XP opening but a custom one that is made possible by a short and easy to use script, can't remember who made it but I'll figure it out if you're interested and send you to the page with their script on it, since they deserve all the credit!. All you do is create your title screen as if it is a map and start the game there, the normal menu functions are call scripts (in the events menu). All that I can explain though!

Is this the kind of thing you were in interested in, if it is I'll show you what events I had to make and hopefully you'll find it nice and simple.
shadowpirate
I haven't tried it so tell me if it works or not.

i have try that.. but it doesn't work...
stripe103
Now I've tried it and it do work, I don't think you've configured it right.

MAP_ID = 001
Here you are going to type in the ID of the map. Not the name, the ID. It can be written "001" or just "1".
Tell me if you need to know how to get this.


MAP_X = 0
MAP_Y = 0
Here you are going to type in where on the map the player will start. Something like the Set pPayers Starting Position
but you type it in with numbers instead. Default is 0 and 0(up to the left in the map).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.