save coordinates into a variable

Status
Not open for further replies.

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
I am trying to make a simple escape scroll that works off a variable that needs to be captured when a player actives an event.

Is there a  way to capture that coordinate and save it into a variable that be recalled in an event?

Or if there is an another solution please let me know

Thanks,

David
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,000
First Language
Tagalog
Primarily Uses
RMVXA
Go to set variable then on the value part, choose game data go to character -> (player or event, whichever you need) -> MAP X 

then do that for MAP Y too...
 
Last edited by a moderator:

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
Ok. Its getting there, but it will not capture the current map.   How do I capture the map ID.   Unable to find mapID when it active the objecct?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
First Language
English
Primarily Uses
RMMV
Control Variables > Game Data > Map ID


You have to do these BEFORE you transfer away. Then to go back to that spot, just do Transfer Player and take the second option to designate the location by variables.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,000
First Language
Tagalog
Primarily Uses
RMVXA
post a pic of your event page...

The one I posted should capture the position oft he player or the event on the current map... unless you're not on a map maybe...
 
Last edited by a moderator:

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
Got it.  instead of playertouch. I changed it to eventtouch and it worked.  Thanks for the great help!  Is there anyway I could rate you up for this?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
First Language
English
Primarily Uses
RMMV
Player touch and Event touch should not make a difference. Unless you had played from a save file and the variable had not been set before you transferred the first time. When you make changes like this, you should rarely continue from a save file.
 

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
Your right.  I was playing from a Saved Game and that makes complete sense as well.   Lesson learned the hard way again :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
First Language
English
Primarily Uses
RMMV
Yep, that'd do it :)


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

We're almost done with the jam game! :D
I get scam calls all the time so today I gave them a piece of my mind. They hung up on me. Sweet revenge.
There’s a beehive in my wall
Just finished my midterms! Freedom! Alright, back to gamedev!

Forum statistics

Threads
104,318
Messages
1,005,523
Members
135,840
Latest member
zaaaa
Top