Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: ShadowStorm on December 11, 2008, 10:40:40 PM

Title: maps
Post by: ShadowStorm on December 11, 2008, 10:40:40 PM
ok say i have an item that teleports me to my tent from any map, and i wanted to go back to the map i was at, how would i do that? is there a way to save which map i was just at and load it when i exit my tent?
Title: Re: maps
Post by: Dragonium on December 11, 2008, 10:50:57 PM
In the second page of the Event Editor, look for "Memorize Position" and "Recall to Memorized Position" (6th and 7th button down respectively). Memorize Position lets you save the map you were on and the hero's position on it into variables. Recall to Memorized Position takes you back to it.

Hope that helps.
Title: Re: maps
Post by: ShadowStorm on December 11, 2008, 11:03:27 PM
hmm, i'm using rpg maker xp so...
well, i got the map part right now i gotta find a way to save the coordnets
edit: alright i got it! and just to help other people...who use rpg maker xp
common event:
-Variable[0001: Map]= Map ID
-Variable[0002: X Coords]= Player X Coords
-Variable[0002: Y Coords]= Player Y Coords

then at your tent make your exit have:
-Change Items: [Tent] +1
-Teleport: By Variables [0001][0002][0003]