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.

Gameover to Inn Snippet

Status
Not open for further replies.
I found this gem on a foreign language site. Oddly, I think it was either written by or found by SephirothSpawn. It's a snippet to allow a player to go from the Game Over screen to an Inn of sorts:

Code:
def update

�  � if Input.trigger?(Input::C)

�  �  � $game_temp.gameover=false

�  �  � case $game_variables[X]

�  �  �  � when y

�  �  �  � $game_map.setup(map_id)

�  �  �  � $game_player.moveto(map_x, map_y)

�  �  �  � $scene=Scene_Map.new

       $game_map.refresh

�  �  �  � when ...

�  �  � end

�  � end

� end

The problem is that I can't figure out how where the variables are that are passed into the snippet. Where does one predetermine the map_id, map_x, and map_y? And what is case $game_variables  
 
Status
Not open for further replies.

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