RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Esc key title screen

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 74
I'm baaack!
I was wondering if there was a script that could bring you to the title screen by hitting the Esc key. Since I didn't find one I'm asking if somwbody could make one.

The reason I need this script is I'm using Jet's paused menu snippit and I put Replace_Menu = true so you can click game end anymore...i'm sleepy.... :dwi:

***
Rep:
Level 82
IT ALL ENDED.
you dont need a script if thats all you need to do
by defaut esc is b or something.
make a common event with
@>conditional branch:button B is pressed
   :return to title screen
make the trigger parallel process

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Gold - GIAW 11 (Hard)Randomizer - GIAW 11Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Mapping)2012 Best RPG Maker User (Programming)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Best Veteran2011 Kindest Member2010 Best RPG Maker User (Story)2010 Best RPG Maker User (Technical)
Johnny's right. A common event and a button you don't normally use will be just the key for this. Perhaps you can even have it give a choice first whether the player really wants to end the game. It's simple and best.

But if you want something more specific, like bringing up that little menu asking if you want to go to the title, shutdown, or cancel, you can just throw this in under materials. Just change Input::X to the button you want to use (remember that the A key is X, S key is Y, D key is Z, and so forth). The only downside is that if you have this in, you can't use the "Game End" from the main menu if you decide to not use the replace menu option after all. But then, you can easily erase this if you do do so.

Code: [Select]
class Scene_Map < Scene_Base
  def update
    super
    $game_map.interpreter.update      # Update interpreter
    $game_map.update                  # Update map
    $game_player.update               # Update player
    $game_system.update               # Update timer
    @spriteset.update                 # Update sprite set
    @message_window.update            # Update message window
    unless $game_message.visible      # Unless displaying a message
      update_transfer_player
      update_encounter
      update_call_menu
      update_call_debug
      update_call_end
      update_scene_change
    end
  end
  def update_call_end
    if Input.trigger?(Input::X)
      return if $game_map.interpreter.running?        # Event being executed?
      $game_temp.menu_beep = true                     # Set SE play flag
      $game_temp.next_scene = nil
      $scene = Scene_End.new
    end
  end
end

class Scene_End < Scene_Base
  def return_scene
    $scene = Scene_Map.new
  end
end




***
Rep:
Level 74
I'm baaack!
I have absolutley NO idea what-so-ever why I needed this...

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Best RPG Maker User (Scripting)2010 Best Use Of Avatar And Signature Space
Maybe it was because you were using Jet's paused menu snippit and you put Replace_Menu = true so you couldn't click game end anymore...and you were sleepy...

***
Rep:
Level 74
I'm baaack!
I do remember being sleepy... I think if somebody wants to they should make this incase anybody else thinks it's a good script!  :D