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.

Continue after gameover

Hi guys,
I know there is script that allows player load games instantly after the game over screen
I had searched the forum,but I really couldn't find the one that I really want...

What I need is actually very simple.
I want the actor to transfer to a certain map location (Map ID) after the game over screen.

Can anyone help?

Thanks a lot! :haha:
 

OS

Sponsor

Code:
 

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

  # * Frame Update

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

  def update

    # If C button was pressed

    if Input.trigger?(Input::C)

      # Setup transfer

      $game_temp.player_new_map_id = 2#map_id

      $game_temp.player_new_x = 5#x tile

      $game_temp.player_new_y = 5#y tile

      $game_temp.player_transferring = true

      $game_temp.gameover = false

      $game_screen.start_tone_change(Tone.new(-255, -255, -255, 0), 0)

      # Switch to game map

      $scene = Scene_Map.new

      $game_screen.start_tone_change(Tone.new(0, 0, 0, 0), 20)

    end

  end

 

Replace all of the Update Method in Scene_Gameover with the one I provided above. If it has any problems, let me know.

NOTE: This does not give your character(s) any health back. As far as I know, they will still be KO'd.
 

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