Salve, sto creando uno script, che qwuando arrivi al game over ti mostra le scelte :continua, torna al titolo, ed esci.
Torna al titolo ed esci sono stati semplici da creare, ma non riesco a creare continua, perche vorrei fare che se lo usi arrivi direttamente all'ultimo salvataggio della partita in corso senza passare per lo scene file.
lo scipt è questo
#==============================================================================# ** Scene_Gameover#------------------------------------------------------------------------------# This class performs game over screen processing.#============================================================================== class Scene_Gameover < Scene_Base #-------------------------------------------------------------------------- # * Start processing #-------------------------------------------------------------------------- def start super RPG::BGM.stop RPG::BGS.stop $data_system.gameover_me.play Graphics.transition(120) Graphics.freeze create_gameover_graphic menu end #-------------------------------------------------------------------------- # * Menù Game Over #-------------------------------------------------------------------------- def menu s1 = "Continua" s2 = "Torna al Titolo" s3 = "Esci" @command_window = Window_Command.new(172, [s1, s2, s3]) @command_window.x = (544 - @command_window.width) / 2 @command_window.y = 288 end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super @command_window.update if Input.trigger?(Input::C) case @command_window.index when 0 when 1 $scene = Scene_Title.new Graphics.fadeout(120) when 2 @sprite.bitmap.dispose @sprite.dispose @command_window.dispose $scene = nil end end end end #-------------------------------------------------------------------------- # * Execute Transition #-------------------------------------------------------------------------- def perform_transition Graphics.transition(180) end #-------------------------------------------------------------------------- # * Create Game Over Graphic #-------------------------------------------------------------------------- def create_gameover_graphic @sprite = Sprite.new @sprite.bitmap = Cache.system("GameOver") end
io l'ho provato, molto divertente e colorato, ma nn c'entra nulla il termine "cpaolavoro" o "miglior gioco" x un gioco del genere, e ha se, nn puo essere paragonato a "veri" giochi del calibro di resident evil,tekken,gran turismo,rachet e clank,assassin's creed ecc.....
Question
Darklink92
Salve, sto creando uno script, che qwuando arrivi al game over ti mostra le scelte :continua, torna al titolo, ed esci.
Torna al titolo ed esci sono stati semplici da creare, ma non riesco a creare continua, perche vorrei fare che se lo usi arrivi direttamente all'ultimo salvataggio della partita in corso senza passare per lo scene file.
lo scipt è questo
#==============================================================================# ** Scene_Gameover#------------------------------------------------------------------------------# This class performs game over screen processing.#============================================================================== class Scene_Gameover < Scene_Base #-------------------------------------------------------------------------- # * Start processing #-------------------------------------------------------------------------- def start super RPG::BGM.stop RPG::BGS.stop $data_system.gameover_me.play Graphics.transition(120) Graphics.freeze create_gameover_graphic menu end #-------------------------------------------------------------------------- # * Menù Game Over #-------------------------------------------------------------------------- def menu s1 = "Continua" s2 = "Torna al Titolo" s3 = "Esci" @command_window = Window_Command.new(172, [s1, s2, s3]) @command_window.x = (544 - @command_window.width) / 2 @command_window.y = 288 end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super @command_window.update if Input.trigger?(Input::C) case @command_window.index when 0 when 1 $scene = Scene_Title.new Graphics.fadeout(120) when 2 @sprite.bitmap.dispose @sprite.dispose @command_window.dispose $scene = nil end end end end #-------------------------------------------------------------------------- # * Execute Transition #-------------------------------------------------------------------------- def perform_transition Graphics.transition(180) end #-------------------------------------------------------------------------- # * Create Game Over Graphic #-------------------------------------------------------------------------- def create_gameover_graphic @sprite = Sprite.new @sprite.bitmap = Cache.system("GameOver") endGrazie in anticipo ;-)
Partecipante al Rpg2s.net Game Contest 2008/2009
Gioco in Sviluppo:
Fantasy ChronicleSarica e commenta anche tu!
http://img120.imageshack.us/img120/3914/adlucariodd0.pnghttp://img74.imageshack.us/img74/8841/admariomc6.pnghttp://img177.imageshack.us/img177/8113/adzsamuszd3.pnghttp://img359.imageshack.us/img359/9097/adfalcoqq6.png
http://img382.imageshack.us/img382/3572/adlucasom6.pnghttp://img501.imageshack.us/img501/5646/adsnakepp3.png
http://team.ffonline.it/imgpersonaggio/cloud_it.jpghttp://team.ffonline.it/imgpersonaggio/cyan_it.jpghttp://team.ffonline.it/imgpersonaggio/steiner_it.jpg
Un tizio riguardo Mario Galaxy
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now