Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Animated Title Screen - Script needed

Hello, does anybody know some good script for making animated title screen? I really need one, I have two faces in my title screen and I want them to open and close their eyes... is it possible? Please, help, if you know some scripts for making it...
Thanks very much.
 
You can skip the title screen... Do any event you want on the very first second in the game (like show picture, ANY event)...

By Punkid(?)
Code:
 

#==============================================================================

# ** Scene_Title

#------------------------------------------------------------------------------

#  This class performs title screen processing.

#==============================================================================

 

class Scene_Title

#--------------------------------------------------------------------------

# * Main Processing

#--------------------------------------------------------------------------

def main

   # If battle test

   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($data_system.start_map_id)

   # Move player to initial position

   $game_player.moveto($data_system.start_x, $data_system.start_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

 

Paste that to replace the SCENE_TITLE.
 
Hello, thanks for the script, but it didn´t work... when I replaced the scene_title with it and clicked "Playtest", it showed me "line 2 syntax error occured"... do you know what to do with it?
Thanks.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top