Camp woes

I certainly hope I have the right forum here, if not, forgive My most sincere mistake.

I am bringing up a subject that by now You may have anwsered but I was never able to get a clear method on, Campsite access/exiting, Now to be clear I have the variable formula down, to a fault, however everytime I use it I am transported to a map in which I did not originate, in laymans I start in one map, use camp item, go to camp, exit camp end up in a completely diferent map!

I am using Win vista with a steam bought RPGMvxA program.

I know You are probably tired of answering this question, but to be fair this is my first time asking directly and it is on a diferent issue related to this subject, any help is greatly appreciated.

Thank You.

 
So you want an item that temporarily transports the player to an instanced camp site then back to their original location once used again? No sweat. (take a close look at the variables used)


camp_event_00.PNGcamp_event_01.PNG


I used a few script calls so I'll go ahead and list em to avoid confusion.

Code:
$game_player.x # Returns the player's current x coordinate.
$game_player.y # Returns the player's current y coordinate.
$game_map.map_id # Returns the current map ID.
Just to add to that in case you weren't sure what was happening with Rinobi's event; Rinobi is basically making the event remember what map you were on and the position (X, Y coordinates) you were in when you used your Camp Item. This copies that information into the variables, then transfers you to your Camp Map. Then, when you exit your camp you will go right back to the spot you came from. Rinobi uses script calls which are great, he could have also done this without script calls. Both ways work perfectly IMO.
I am doing what You all have told me and it does send Me back to the original map, however, it doesn't place Me exactly to where I used the item, am I doing something wrong?

Screenshot_5.png

Screenshot_6.png

Screenshot_7.png
I am doing what You all have told me and it does send Me back to the original map, however, it doesn't place Me exactly to where I used the item, am I doing something wrong?

yes, because otherwise you'll be at the exact position.


Best guess? You probably mixed up the variables for X and Y, exchanging their coordinates.


Either that or something else changes those variables.


@Rinobi Absolutely no need for scriptcalls here - all three values are part of the game data sequences directly accessable by the control variable command.


In fact it would be better to get comfortable with using the game data sequence instead of the script sequence of control variable, because the game data works the same way for all different makers - the script commands are different in MV for example.
Success! with all of You help, fellow Creators, I've solved this issue, You may close this post now, hopefully others having the same issue will be able to find this.
Thank You all.

Original thread: https://forums.rpgmakerweb.com/threads/camp-woes.61162/