Hi, can you please tell me what's worng with this script?
It is supposed to swap between the player's location and some event's loaction.
Code:
Â
class Swap_EP
Â
 def initialize (msID)
Â
   $game_temp.player_new_x = $game_map.events[msID].x
   $game_temp.player_new_y =  $game_map.events[msID].y
  Â
   $game_map.events[msID].x = $game_player.x
   $game_map.events[msID].y = $game_player.y
  Â
 Â
  Â
 end
Â
end
It is supposed to swap between the player's location and some event's loaction.