CODE FOR PLAYER LOCATION ON MAP?
Posts
Pages:
1
I would just ask in IRC, but it won't work on this computer.
I've pored over the script, but can't figure out which part I would use to transfer the PLAYER to a new map, while keeping the same X,Y coordinates.
I have a script for doing it to the Ship, and tried modifying it to work for the player, but to no avail.
This is the script currently:
$game_player.set_location(31,
$game_map.player.x,
$game_map.player.y)
I've pored over the script, but can't figure out which part I would use to transfer the PLAYER to a new map, while keeping the same X,Y coordinates.
I have a script for doing it to the Ship, and tried modifying it to work for the player, but to no avail.
This is the script currently:
$game_player.set_location(31,
$game_map.player.x,
$game_map.player.y)
If I understand what you're trying to do, then you could easily do this with an event and variables. Set two variables to the player's current X and Y positions, and a third variable as the target map's ID. Then, simply use those variables to designate the location to transfer the player to. "Control Variables..." is on the first page of the event commands and "Transfer Player..." is on the second page.
I know, but when I try to send him back to the original map, the new map's ID gets stuck.
You see, I am trying to make the player switch between two maps on three second intervals.
The map transfer is the hard part, everything else seems to work.
You see, I am trying to make the player switch between two maps on three second intervals.
The map transfer is the hard part, everything else seems to work.
post=97543
I know, but when I try to send him back to the original map, the new map's ID gets stuck.
You see, I am trying to make the player switch between two maps on three second intervals.
The map transfer is the hard part, everything else seems to work.
Unless I'm misunderstanding, you can simply change the variable with the map's ID's value or use another variable.
I did, they are both seprate variables.
However, VX gets wonky sometimes.
Doing it with a script seems to be the only way I'll get this to work.
However, VX gets wonky sometimes.
Doing it with a script seems to be the only way I'll get this to work.
post=97546
I did, they are both seprate variables.
However, VX gets wonky sometimes.
Doing it with a script seems to be the only way I'll get this to work.
I went to try and it seems to be working for me.
http://i25.tinypic.com/16bc13c.png
http://i26.tinypic.com/15nrqc2.jpg
(I have no idea why Tinypic decided to change the second screenshot to a .jpg, especially when the first one stayed as a .png...)
Edit: http://v3.tinypic.com/player.swf?file=nwiopg&s=3
Extremely crappy video showing what those two events do. I put a dog and a cat on the maps to differentiate them.
Pages:
1














