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.

Teleporting using RGSS

There is an event in which you can teleport to a different map, I know. But is there a way in which you can teleport using a script?
 
All event commands are in the script "Interpreter" and so on.

Transfer player is:

$game_temp.player_transferring = true
$game_temp.player_new_map_id = a
$game_temp.player_new_x = b
$game_temp.player_new_y = c
$game_temp.player_new_direction = d


a is the map id
b is the x position
c is the y position
d is the direction


I think this is right anyway.
 

Jason

Awesome Bro

Arbiter, this is how it looks for me now, it's meant to take me to the second map and 10,7 co-ords:
Code:
      when 2  # 
        $scene = Scene_Map.new
        $game_map.setup(2)
        $game_player.moveto(10,7)
        $game_player.refresh

I get a NoMethod error with line 107 which is         
$game_map.setup(2)

any ideas ?
 

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