Hi! I was trying to make a simple way to swap places between an event and the player and found this post at the Steam Community:
https://steamcommunity.com/app/220700/discussions/0/541906989406046907/
Signum1221 wrote a simple script that almost did it:
Add this to script manager>materials section:
And this in the event:
You can also change "self.event_id" for any specific ID you want.
HOWEVER! As he stated:
And there's was no fix to it... 😢 Any ideas on how to fix it?
https://steamcommunity.com/app/220700/discussions/0/541906989406046907/
Signum1221 wrote a simple script that almost did it:
Add this to script manager>materials section:
Code:
class Game_Map
attr_accessor :events
end
class Game_Event
attr_accessor :event
end
And this in the event:
Code:
#saves event position
coordx=$game_map.events[self.event_id].event.x
coordy=$game_map.events[self.event_id].event.y
#sets event position to player position
$game_map.events[self.event_id].moveto($game_player.x,$game_player.y)
#sets player position to old event position
$game_player.moveto(coordx,coordy)
You can also change "self.event_id" for any specific ID you want.
HOWEVER! As he stated:
And there's was no fix to it... 😢 Any ideas on how to fix it?