Change player position without changing map number.

coolperez8

Veteran
Veteran
Joined
Mar 23, 2016
Messages
159
Reaction score
12
First Language
English
Primarily Uses
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.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
722
Reaction score
578
First Language
French
Primarily Uses
Try this:

Code:
$gamePlayer.setPosition(x, y)
 

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
506
Reaction score
422
First Language
English
Primarily Uses
RMMV
Does it even take longer if you have it not fade? Otherwise use what's mentioned above
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
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);
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,107
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
If you do a transfer without fading it should be much faster than a 'normal' transfer (just set the Fade Type to None).
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
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 
 

coolperez8

Veteran
Veteran
Joined
Mar 23, 2016
Messages
159
Reaction score
12
First Language
English
Primarily Uses
If you do a transfer without fading it should be much faster than a 'normal' transfer (just set the Fade Type to None).
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)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,195
Members
137,773
Latest member
Kirakirna
Top