So, what I want to do is teleport the player to a certain spot on the same map using script calls. The reason for this is because using the transport player option takes longer even when the player is located on the map they're being transported to.
Change player position without changing map number.
Learning JavascriptTry this:
Code:
$gamePlayer.setPosition(x, y)
Does it even take longer if you have it not fade? Otherwise use what's mentioned above
Works, but the camera is all weird.
If you use it you will separate from your follower
use this
$gamePlayer.reserveTransfer(mapId, x, y, 2, 2);
If you do a transfer without fading it should be much faster than a 'normal' transfer (just set the Fade Type to None).
Dammit I am always thinking with scripts and forget about rpgmv
Got it, but apparently wasn't fast enough.
I managed to get it working with:
Code:
$gamePlayer.center($gameMap.event(this.eventId()).x, $gameMap.event(this.eventId()).y)
Original thread: https://forums.rpgmakerweb.com/threads/change-player-position-without-changing-map-number.64576/