Professional Title Screen + weather effects?

So I'm using the Professional Title Screen V2.0 English translation, released by Sonicia, and I'm wondering how I would add rain effects (default RTP rain) to it. From what little I know of scripting, it should be fairly easy to implement, correct?

Script:
  1. =begin
  2. =========================================
  3. Professional Title Screen ver. 2.0 English Translation
  4. Script by パラ犬, Edited by Kio !! :D
  5. http://rpg.para.s3p.net/
  6. -->Released and translated by Sonicia.
  7. Search for my name (Sonicia)for the customizing place where you can arange the
  8. graphics where you want them. Please credit Kio, who orginally made this script
  9. compatable, and me for translating, releasing, and finding out how to use it.
  10. Note, in a few rare spots there is still Japanese, since it was code I didnt
  11. change it for fear of messing it up. All comments are translated by Sonicia.
  12.  
  13. Note: you need continue.png, continue_active.png, newgame.png,
  14. newgame_active.png, shutdown.png, and shutdown_active.png in your game's
  15. graphics\title folder. The graphics must be the same size, both active and inactive.
  16. This means that if you have an arrow or text make that one first, duplicate,
  17. then erase the arrow and edit the rest of the picture or it will be set off.
  18. =========================================
  19.  
  20. =========================================
  21. Title menu picture
  22. =========================================
  23. =end
  24. #===========================================
  25. module PARA_TITLE_CUSTOM
  26.  
  27. # Menu command picture, (true/false)
  28. IMG_MENU = true
  29.  
  30. #↓---Menu command picture Setting---
  31. #Character string of menu command
  32. #MENU_NEWGAME = “new game” # new game
  33. MENU_NEWGAME = "ニューゲーム" # ニューゲーム
  34. #MENU_LOAD = “continuing” # continuing
  35. MENU_LOAD = "コンティニュー" # コンティニュー
  36. #MENU_END = “shutdown” # shutdown
  37. MENU_END = "シャットダウン" # シャットダウン
  38.  
  39. # window frame (true/false)
  40. WINDOW_TRANS = false
  41. #Transparency of the window frame
  42. WINDOW_OPACITY = 160
  43.  
  44. #Side size (horizontal?) of # window
  45. WINDOW_WIDTH = 192
  46. #Vertical position of window (0: Coordinate appointment/
  47. #1: The left edge/2: Center/3: Right hand edge)
  48. WINDOW_ALIGN = 2
  49. #When # “coordinate appointment” being, abscissa of the window
  50. WINDOW_POS_X = 0
  51. #Vertical position of # window (0: Coordinate appointment/
  52. #1: Top/2: Center/3: Bottom)
  53. WINDOW_VALIGN = 0
  54. #When “coordinate appointment” being, ordinate of the window
  55. WINDOW_POS_Y = 288
  56.  
  57.  
  58. #==========================================
  59. =begin
  60. Sonicia
  61. Customize the location and the graphics make sure you change
  62. only the numbers, 250 is approxamtely the center of
  63. the vertical screen.
  64. Make sure that the command pictures are in the “Graphics/Titles” folder
  65. =end
  66. #==========================================
  67. =begin
  68. #New Game Graphic
  69. IMG_NEWGAME = ["newgame","newgame_active"]
  70. IMG_NEWGAME_X = 100 # Horizontal position
  71. IMG_NEWGAME_Y = 160 # Vertical position
  72. #Continue Graphic
  73. IMG_LOAD = ["continue","continue_active"]
  74. IMG_LOAD_X = 250 # Horizontal position
  75. IMG_LOAD_Y = 160 # Vertical position
  76. #Shut Down Graphic
  77. IMG_END = ["shutdown","shutdown_active"]
  78. IMG_END_X = 400 # Horizontal position
  79. IMG_END_Y = 160 # Vertical position
  80. =end
  81. #My orginal settings for reference Copy and paste if you need to
  82. #New Game Graphic
  83. IMG_NEWGAME = ["newgame","newgame_active"]
  84. IMG_NEWGAME_X = 251 # Horizontal position
  85. IMG_NEWGAME_Y = 310 # Vertical position
  86. #Continue Graphic
  87. IMG_LOAD = ["continue","continue_active"]
  88. IMG_LOAD_X = 250 # Horizontal position
  89. IMG_LOAD_Y = 350 # Vertical position
  90. #Shut Down Graphic
  91. IMG_END = ["shutdown","shutdown_active"]
  92. IMG_END_X = 253 # Horizontal position
  93. IMG_END_Y = 390 # Vertical position
  94.  
  95.  
  96. #END CUSTOMIZABLE AREA
  97. #============================================
  98. #Synthetic method of picture (0: Usually/1: Addition/2: Subtraction)
  99. BLEND_TYPE = 0
  100. end
  101.  
  102.  
  103. #------------------------------------------------------------------------------
  104.  
  105. #======================================
  106. # ■ Scene_Title
  107. #======================================
  108.  
  109. class Scene_Title
  110. #--------------------------------------------------------------------------
  111. # - Main processing
  112. #--------------------------------------------------------------------------
  113. def main
  114. #If battle test
  115. if $BTEST
  116. battle_test
  117. return
  118. end
  119. # Load database
  120. $data_actors = load_data("Data/Actors.rxdata")
  121. $data_classes = load_data("Data/Classes.rxdata")
  122. $data_skills = load_data("Data/Skills.rxdata")
  123. $data_items = load_data("Data/Items.rxdata")
  124. $data_weapons = load_data("Data/Weapons.rxdata")
  125. $data_armors = load_data("Data/Armors.rxdata")
  126. $data_enemies = load_data("Data/Enemies.rxdata")
  127. $data_troops = load_data("Data/Troops.rxdata")
  128. $data_states = load_data("Data/States.rxdata")
  129. $data_animations = load_data("Data/Animations.rxdata")
  130. $data_tilesets = load_data("Data/Tilesets.rxdata")
  131. $data_common_events = load_data("Data/CommonEvents.rxdata")
  132. $data_system = load_data("Data/System.rxdata")
  133. # Make system object
  134. $game_system = Game_System.new
  135. # Make title graphic
  136. @sprite = Sprite.new
  137. @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  138. # Make command window
  139. s1 = PARA_TITLE_CUSTOM::MENU_NEWGAME
  140. s2 = PARA_TITLE_CUSTOM::MENU_LOAD
  141. s3 = PARA_TITLE_CUSTOM::MENU_END
  142. w = PARA_TITLE_CUSTOM::WINDOW_WIDTH
  143. @command_window = Window_Command.new(w, [s1, s2, s3])
  144. if PARA_TITLE_CUSTOM::WINDOW_TRANS
  145. @command_window.opacity = 0
  146. else
  147. @command_window.back_opacity = PARA_TITLE_CUSTOM::WINDOW_OPACITY
  148. end
  149. # Position of the window
  150. case PARA_TITLE_CUSTOM::WINDOW_ALIGN
  151. when 0
  152. @command_window.x = PARA_TITLE_CUSTOM::WINDOW_POS_X
  153. when 1
  154. @command_window.x = 0
  155. when 2
  156. @command_window.x = ( 640 - @command_window.width ) / 2
  157. when 3
  158. @command_window.x = 640 - @command_window.width
  159. end
  160. case PARA_TITLE_CUSTOM::WINDOW_VALIGN
  161. when 0
  162. @command_window.y = PARA_TITLE_CUSTOM::WINDOW_POS_Y
  163. when 1
  164. @command_window.y = 0
  165. when 2
  166. @command_window.y = ( 480 - @command_window.height ) / 2
  167. when 3
  168. @command_window.y = 480 - @command_window.height
  169. end
  170. # Continue enabled determinant
  171. # Check if at least one save file exists
  172. # If enabled, make @continue_enabled true; if disabled, make it false
  173. @continue_enabled = true
  174. for i in 0..3
  175. if FileTest.exist?("Save#{i+1}.rxdata")
  176. @continue_enabled = true
  177. end
  178. end
  179. # If continue is enabled, move cursor to "Continue"
  180. # If disabled, display "Continue" text in gray
  181. if @continue_enabled
  182. @command_window.index = 1
  183. else
  184. @command_window.disable_item(1)
  185. end
  186. # Command Picture
  187. if PARA_TITLE_CUSTOM::IMG_MENU
  188. @command_window.visible = false
  189. @command_img1 = Sprite.new
  190. @command_img1.blend_type = PARA_TITLE_CUSTOM::BLEND_TYPE
  191. @command_img1.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_NEWGAME[0])
  192. @command_img1.x = PARA_TITLE_CUSTOM::IMG_NEWGAME_X
  193. @command_img1.y = PARA_TITLE_CUSTOM::IMG_NEWGAME_Y
  194. @command_img2 = Sprite.new
  195. @command_img2.blend_type = PARA_TITLE_CUSTOM::BLEND_TYPE
  196. @command_img2.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_LOAD[0])
  197. @command_img2.x = PARA_TITLE_CUSTOM::IMG_LOAD_X
  198. @command_img2.y = PARA_TITLE_CUSTOM::IMG_LOAD_Y
  199. @command_img3 = Sprite.new
  200. @command_img3.blend_type = PARA_TITLE_CUSTOM::BLEND_TYPE
  201. @command_img3.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_END[0])
  202. @command_img3.x = PARA_TITLE_CUSTOM::IMG_END_X
  203. @command_img3.y = PARA_TITLE_CUSTOM::IMG_END_Y
  204. # If continue is enabled, move cursor to "Continue"
  205. # If disabled, display "Continue" text in gray
  206. if @continue_enabled
  207. @command_img1.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_NEWGAME[0])
  208. @command_img2.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_LOAD[1])
  209. else
  210. @command_img2.opacity = 160
  211. @command_img1.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_NEWGAME[1])
  212. @command_img2.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_LOAD[0])
  213. end
  214. end
  215. # Play title BGM
  216. $game_system.bgm_play($data_system.title_bgm)
  217. # Stop playing ME and BGS
  218. Audio.me_stop
  219. Audio.bgs_stop
  220. # Execute transition
  221. Graphics.transition
  222. # Main loop
  223. loop do
  224. # Update game screen
  225. Graphics.update
  226. # Update input information
  227. Input.update
  228. # Frame update
  229. update
  230. # Abort loop if screen is changed
  231. if $scene != self
  232. break
  233. end
  234. end
  235. # Prepare for transition
  236. Graphics.freeze
  237. # Dispose of command window
  238. @command_window.dispose
  239. if PARA_TITLE_CUSTOM::IMG_MENU
  240. @command_img1.dispose
  241. @command_img2.dispose
  242. @command_img3.dispose
  243. end
  244. # Graphics Dispose
  245. @sprite.bitmap.dispose
  246. @sprite.dispose
  247. end
  248.  
  249.  
  250. #--------------------------------------------------------------------------
  251. # * Frame Update
  252. #--------------------------------------------------------------------------
  253. def update
  254. # Update command window
  255. @command_window.update
  256. # If C button was pressed
  257. if Input.trigger?(Input::C)
  258. # Branch by command window cursor position
  259. case @command_window.index
  260. when 0 # New game
  261. command_new_game
  262. when 1 # Continue
  263. command_continue
  264. when 2 # Shutdown
  265. command_shutdown
  266. end
  267. end
  268. if PARA_TITLE_CUSTOM::IMG_MENU
  269. if Input.repeat?(Input::UP) or Input.repeat?(Input::DOWN)
  270. case @command_window.index
  271. when 0 # New Game
  272. @command_img1.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_NEWGAME[1])
  273. @command_img2.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_LOAD[0])
  274. @command_img3.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_END[0])
  275. when 1 # Continue Game
  276. @command_img1.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_NEWGAME[0])
  277. @command_img2.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_LOAD[1])
  278. @command_img3.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_END[0])
  279. when 2 # End Game
  280. @command_img1.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_NEWGAME[0])
  281. @command_img2.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_LOAD[0])
  282. @command_img3.bitmap = RPG::Cache.title(PARA_TITLE_CUSTOM::IMG_END[1])
  283. end
  284. end
  285. end
  286. end
  287. def command_new_game
  288. # Play decision SE
  289. $game_system.se_play($data_system.decision_se)
  290. # Stop BGM
  291. Audio.bgm_stop
  292. # Reset frame count for measuring play time
  293. Graphics.frame_count = 0
  294. # Make each type of game object
  295. $game_temp = Game_Temp.new
  296. $game_system = Game_System.new
  297. $game_switches = Game_Switches.new
  298. $game_variables = Game_Variables.new
  299. $game_self_switches = Game_SelfSwitches.new
  300. $game_screen = Game_Screen.new
  301. $game_actors = Game_Actors.new
  302. $game_party = Game_Party.new
  303. $game_troop = Game_Troop.new
  304. $game_map = Game_Map.new
  305. $game_player = Game_Player.new
  306. # Set up initial party
  307. $game_party.setup_starting_members
  308. # Set up initial map position
  309. $game_map.setup($data_system.start_map_id)
  310. # Move player to initial position
  311. $game_player.moveto($data_system.start_x, $data_system.start_y)
  312. # Refresh player
  313. $game_player.refresh
  314. # Run automatic change for BGM and BGS set with map
  315. $game_map.autoplay
  316. # Update map (run parallel process event)
  317. $game_map.update
  318. # Switch to map screen
  319. $scene = Scene_Map.new
  320. end
  321. #--------------------------------------------------------------------------
  322. # * Command: Continue
  323. #--------------------------------------------------------------------------
  324. def command_continue
  325. # If continue is disabled
  326. unless @continue_enabled
  327. # Play buzzer SE
  328. $game_system.se_play($data_system.buzzer_se)
  329. return
  330. end
  331. # Play decision SE
  332. $game_system.se_play($data_system.decision_se)
  333. # Switch to load screen
  334. $scene = Scene_Load.new
  335. end
  336. #--------------------------------------------------------------------------
  337. # * Command: Shutdown
  338. #--------------------------------------------------------------------------
  339. def command_shutdown
  340. # Play decision SE
  341. $game_system.se_play($data_system.decision_se)
  342. # Fade out BGM, BGS, and ME
  343. Audio.bgm_fade(800)
  344. Audio.bgs_fade(800)
  345. Audio.me_fade(800)
  346. # Shutdown
  347. $scene = nil
  348. end
  349. #--------------------------------------------------------------------------
  350. # * Battle Test
  351. #--------------------------------------------------------------------------
  352. def battle_test
  353. # Load database (for battle test)
  354. $data_actors = load_data("Data/BT_Actors.rxdata")
  355. $data_classes = load_data("Data/BT_Classes.rxdata")
  356. $data_skills = load_data("Data/BT_Skills.rxdata")
  357. $data_items = load_data("Data/BT_Items.rxdata")
  358. $data_weapons = load_data("Data/BT_Weapons.rxdata")
  359. $data_armors = load_data("Data/BT_Armors.rxdata")
  360. $data_enemies = load_data("Data/BT_Enemies.rxdata")
  361. $data_troops = load_data("Data/BT_Troops.rxdata")
  362. $data_states = load_data("Data/BT_States.rxdata")
  363. $data_animations = load_data("Data/BT_Animations.rxdata")
  364. $data_tilesets = load_data("Data/BT_Tilesets.rxdata")
  365. $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
  366. $data_system = load_data("Data/BT_System.rxdata")
  367. # Reset frame count for measuring play time
  368. Graphics.frame_count = 0
  369. # Make each game object
  370. $game_temp = Game_Temp.new
  371. $game_system = Game_System.new
  372. $game_switches = Game_Switches.new
  373. $game_variables = Game_Variables.new
  374. $game_self_switches = Game_SelfSwitches.new
  375. $game_screen = Game_Screen.new
  376. $game_actors = Game_Actors.new
  377. $game_party = Game_Party.new
  378. $game_troop = Game_Troop.new
  379. $game_map = Game_Map.new
  380. $game_player = Game_Player.new
  381. # Set up party for battle test
  382. $game_party.setup_battle_test_members
  383. # Set troop ID, can escape flag, and battleback
  384. $game_temp.battle_troop_id = $data_system.test_troop_id
  385. $game_temp.battle_can_escape = true
  386. $game_map.battleback_name = $data_system.battleback_name
  387. # Play battle start SE
  388. $game_system.se_play($data_system.battle_start_se)
  389. # Play battle BGM
  390. $game_system.bgm_play($game_system.battle_bgm)
  391. # Switch to battle screen
  392. $scene = Scene_Battle.new
  393. end
  394. end
Expand to see the code.
make a new page above the 'Title Screen V2.0 script'
and paste this:
  1. class Window_Weather < Window_Base
  2.  
  3.   def initialize
  4.     super(0, 0, 640, 480)
  5.     @viewport1 = Viewport.new(0, 0, 640, 480)
  6.     @viewport1.z = 5000
  7.     self.opacity = 0
  8.     $game_temp = Game_Temp.new
  9.     $game_screen = Game_Screen.new
  10.     $game_screen.weather(1,5,200)
  11.     @weather = RPG::Weather.new(@viewport1)
  12.   end
  13.  
  14.   def update
  15.     super
  16.     $game_screen.update
  17.     @weather.type = $game_screen.weather_type
  18.     @weather.max = $game_screen.weather_max
  19.     @weather.ox = 0 #$game_map.display_x / 4
  20.     @weather.oy = 0 #$game_map.display_y / 4
  21.     @weather.update
  22.   end
  23.  
  24. end
Expand to see the code.


Then, add this in line 135:
@window = Window_Weather.new

and this in line 256:
@window.update
I'm getting an error on like 3 for some reason.
line 3 of my script? can you quote what the error says?
"Script ' ' line 3: SyntaxError occurred."
That's weird. I tested my script before I posted and double-checked now. I don't get syntax error. Seems like the error is from some other script. Search the script editor for for pages with no name, as it says script ' '. try naming them all, so you can track which one is it.
silver wind wrote:
That's weird. I tested my script before I posted and double-checked now. I don't get syntax error. Seems like the error is from some other script. Search the script editor for for pages with no name, as it says script ' '. try naming them all, so you can track which one is it.

It's because he tried inserting the script without taking the LineNumber Off.

@Nickster, Click LineNumber OFF before copying the script into the script editor, all those red numbers will just give you a syntax error.
Or Select all .-.
PandoraShock wrote:
Or Select all .-.

Umm.

That doesn't get rid of the Line Number. In case you haven't tried it already.
You're right, that's was it. Can't believe I didn't notice it.

Got it working, thanks for the help. [:
Have fun [:
The weather adds a nice touch. I would use it myself, but it doesn't fit the atmosphere of my game..
so there's a slight problem, I'm using the animate save file as well, and when i go from title screen to "continue" the rain freezes. then when i go right back to the title screen, its still frozen but new rain just goes right over the top of it. Any idea's on that?
oh, sorry. I forgot to dispose the weather window.
in line 246, add: @window.dispose
Hmm, still not working. the rain is still freezing and when i go back it just goes right over it.
You're right. Apparently the weather needs to be disposed too.
In a new page, paste this :
  1. class Window_Weather < Window_Base
  2.  
  3.   def initialize
  4.     super(0, 0, 640, 480)
  5.     @viewport1 = Viewport.new(0, 0, 640, 480)
  6.     @viewport1.z = 5000
  7.     #self.opacity = 50
  8.     $game_temp = Game_Temp.new
  9.     $game_screen = Game_Screen.new
  10.     $game_screen.weather(1,5,200)
  11.     @weather = RPG::Weather.new(@viewport1)
  12.   end
  13.  
  14.   def update
  15.     super
  16.     $game_screen.update
  17.     @weather.type = $game_screen.weather_type
  18.     @weather.max = $game_screen.weather_max
  19.     @weather.ox = 0
  20.     @weather.oy = 0
  21.     @weather.update
  22.   end
  23.  
  24.   def dispose
  25.     $game_screen.weather(0, 0, 20)
  26.     @weather.dispose
  27.     super
  28.   end
  29.  
  30. end
Expand to see the code.


in line 135, add: @window = Window_Weather.new

in line 256, add: @window.update

in line 246, add: @window.dispose

If anyone wants weather with the default Title screen, here's the code (new page, above main)
  1.  
  2. class Window_Weather < Window_Base
  3.  
  4.   def initialize
  5.     super(0, 0, 640, 480)
  6.     @viewport1 = Viewport.new(0, 0, 640, 480)
  7.     @viewport1.z = 5000
  8.     #self.opacity = 50
  9.     $game_temp = Game_Temp.new
  10.     $game_screen = Game_Screen.new
  11.     $game_screen.weather(1,5,200)
  12.     @weather = RPG::Weather.new(@viewport1)
  13.   end
  14.  
  15.   def update
  16.     super
  17.     $game_screen.update
  18.     @weather.type = $game_screen.weather_type
  19.     @weather.max = $game_screen.weather_max
  20.     @weather.ox = 0
  21.     @weather.oy = 0
  22.     @weather.update
  23.   end
  24.  
  25.   def dispose
  26.     $game_screen.weather(0, 0, 20)
  27.     @weather.dispose
  28.     super
  29.   end
  30.  
  31. end
  32.  
  33. class Scene_Title
  34.   #--------------------------------------------------------------------------
  35.   # * Main Processing
  36.   #--------------------------------------------------------------------------
  37.   def main
  38.     # If battle test
  39.     if $BTEST
  40.       battle_test
  41.       return
  42.     end
  43.     # Load database
  44.     $data_actors        = load_data("Data/Actors.rxdata")
  45.     $data_classes       = load_data("Data/Classes.rxdata")
  46.     $data_skills        = load_data("Data/Skills.rxdata")
  47.     $data_items         = load_data("Data/Items.rxdata")
  48.     $data_weapons       = load_data("Data/Weapons.rxdata")
  49.     $data_armors        = load_data("Data/Armors.rxdata")
  50.     $data_enemies       = load_data("Data/Enemies.rxdata")
  51.     $data_troops        = load_data("Data/Troops.rxdata")
  52.     $data_states        = load_data("Data/States.rxdata")
  53.     $data_animations    = load_data("Data/Animations.rxdata")
  54.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
  55.     $data_common_events = load_data("Data/CommonEvents.rxdata")
  56.     $data_system        = load_data("Data/System.rxdata")
  57.     # Make system object
  58.     $game_system = Game_System.new
  59.     # Make title graphic
  60.     @sprite = Sprite.new
  61.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
  62.     # ----------------- my edit----------------- #
  63.     @window = Window_Weather.new
  64.     @window.opacity = 0
  65.     # ----------------------------------------- #
  66.     # Make command window
  67.     s1 = "New Game"
  68.     s2 = "Continue"
  69.     s3 = "Shutdown"
  70.     @command_window = Window_Command.new(192, [s1, s2, s3])
  71.     @command_window.back_opacity = 160
  72.     @command_window.x = 320 - @command_window.width / 2
  73.     @command_window.y = 288
  74.     # Continue enabled determinant
  75.     # Check if at least one save file exists
  76.     # If enabled, make @continue_enabled true; if disabled, make it false
  77.     @continue_enabled = false
  78.     for i in 0..3
  79.       if FileTest.exist?("Save#{i+1}.rxdata")
  80.         @continue_enabled = true
  81.       end
  82.     end
  83.     # If continue is enabled, move cursor to "Continue"
  84.     # If disabled, display "Continue" text in gray
  85.     if @continue_enabled
  86.       @command_window.index = 1
  87.     else
  88.       @command_window.disable_item(1)
  89.     end
  90.     # Play title BGM
  91.     $game_system.bgm_play($data_system.title_bgm)
  92.     # Stop playing ME and BGS
  93.     Audio.me_stop
  94.     Audio.bgs_stop
  95.     # Execute transition
  96.     Graphics.transition
  97.     # Main loop
  98.     loop do
  99.       # Update game screen
  100.       Graphics.update
  101.       # Update input information
  102.       Input.update
  103.       # Frame update
  104.       update
  105.       # Abort loop if screen is changed
  106.       if $scene != self
  107.         break
  108.       end
  109.     end
  110.     # Prepare for transition
  111.     Graphics.freeze
  112.     # Dispose of command window
  113.     @command_window.dispose
  114.     # Dispose of title graphic
  115.     @sprite.bitmap.dispose
  116.     @sprite.dispose
  117.     @window.dispose
  118.   end
  119.   #--------------------------------------------------------------------------
  120.   # * Frame Update
  121.   #--------------------------------------------------------------------------
  122.   def update
  123.     # ------ my edit ------ #
  124.     @window.update
  125.     # ------ my edit ------ #
  126.     # Update command window
  127.     @command_window.update
  128.     # If C button was pressed
  129.     if Input.trigger?(Input::C)
  130.       # Branch by command window cursor position
  131.       case @command_window.index
  132.       when 0  # New game
  133.         command_new_game
  134.       when 1  # Continue
  135.         command_continue
  136.       when 2  # Shutdown
  137.         command_shutdown
  138.       end
  139.     end
  140.   end
  141.  
  142. end
Expand to see the code.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=71251