- Joined
- Jun 14, 2014
- Messages
- 9
- Reaction score
- 1
- First Language
- Italian
- Primarily Uses
Hello guys,
in an autorun event I want to "teleport" the main character to another location of the current map. I noticed I can't use "Set event location" to move the main player, and I'd like to know what's the correct way to do it. Should I simply use "Transfer player" targeting the same map and disabling fade? Won't this trigger some sort of map reload/events restart?
Thanks
EDIT: I looked into the Game_Player script:
#--------------------------------------------------------------------------
# * Execute Player Transfer
#--------------------------------------------------------------------------
def perform_transfer
if transfer?
set_direction(@new_direction)
if @new_map_id != $game_map.map_id
$game_map.setup(@new_map_id)
$game_map.autoplay
end
moveto(@new_x, @new_y)
clear_transfer_info
end
end
So it looks like moving the player into the same map does not retrigger map's setup etc. etc.
So I guess "Transfer player" is the right way to do it. Or use "script: $game_player.moveto(newx,newy)" maybe
Feel free to post corrections if my assumptions are wrong. Thanks !
in an autorun event I want to "teleport" the main character to another location of the current map. I noticed I can't use "Set event location" to move the main player, and I'd like to know what's the correct way to do it. Should I simply use "Transfer player" targeting the same map and disabling fade? Won't this trigger some sort of map reload/events restart?
Thanks
EDIT: I looked into the Game_Player script:
#--------------------------------------------------------------------------
# * Execute Player Transfer
#--------------------------------------------------------------------------
def perform_transfer
if transfer?
set_direction(@new_direction)
if @new_map_id != $game_map.map_id
$game_map.setup(@new_map_id)
$game_map.autoplay
end
moveto(@new_x, @new_y)
clear_transfer_info
end
end
So it looks like moving the player into the same map does not retrigger map's setup etc. etc.
So I guess "Transfer player" is the right way to do it. Or use "script: $game_player.moveto(newx,newy)" maybe
Feel free to post corrections if my assumptions are wrong. Thanks !
Last edited by a moderator:

