How can i use this code?

Roxen010

Villager
Member
Joined
Aug 3, 2018
Messages
28
Reaction score
6
First Language
English,Spanish
Primarily Uses
RMMV
Hi all, how can i use this code for my game?
Note: Please explain with examples.

$game_player.reserve_transfer(map_id, x, y, direction)
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,641
Reaction score
8,071
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
606
Reaction score
405
First Language
English
Primarily Uses
RMVXA
That's the code for 'transfer player', pretty much the same as the event command for transferring the player. map_id is the ID of the map to transfer to (e.g. 1 for map 1), x is the destination X coordinate for the player, y is the destination Y coordinate for the player, and direction is a number that refers to which direction the player should be facing (8 for up, 6 for right, 4 for left and 2 for down).
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,130
Reaction score
12,404
First Language
English
Primarily Uses
RMMV
Why would you want to do that via a script? Why not just use the Transfer Player command?
 

Roxen010

Villager
Member
Joined
Aug 3, 2018
Messages
28
Reaction score
6
First Language
English,Spanish
Primarily Uses
RMMV
That's the code for 'transfer player', pretty much the same as the event command for transferring the player. map_id is the ID of the map to transfer to (e.g. 1 for map 1), x is the destination X coordinate for the player, y is the destination Y coordinate for the player, and direction is a number that refers to which direction the player should be facing (8 for up, 6 for right, 4 for left and 2 for down).

Thank you so much :)
 

Roxen010

Villager
Member
Joined
Aug 3, 2018
Messages
28
Reaction score
6
First Language
English,Spanish
Primarily Uses
RMMV
Why would you want to do that via a script? Why not just use the Transfer Player command?

Because i using a online system and some things is some different..
 

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

Latest Threads

Latest Profile Posts

Stream will be live shortly with some pixel art! Feel free to drop by!

Can't believe I forgot to put an image of my drawing pad! It looks kinda like this, maybe I'll get a better pic tomorrow...
Backup tip: If you don't want to back up your whole project every day, at least back up everything *except* your Image and Audio folders, which you can do weekly/as needed/etc.
The final version of our game is already available both in English and Spanish! ^___^
Can't believe this day has finally come... T_T
Im so happy that Dead By Daylight is getting a Silent Hill chapter! Cant wait to play as pyramid head

Forum statistics

Threads
97,814
Messages
947,149
Members
129,035
Latest member
Tauron7
Top