Charas-Project
Game Creation => Requests => Tutorials => Topic started by: Fisherson on June 15, 2008, 04:34:32 PM
-
Can some one please help me with this?
I need help teleporting to a remebered location and then telporting back.
It goes like this:If you press C wille on the space map you are teleported to a shipmap.
Lets say you move your ship 2 spaces forward and press C,then once telleported onto the starship map.
You press C you telleport to the same place on the map as when you first pressed C in the same space as you last telleported
when you moved two spaces forward.
Can sombody teach me how to do this?
-
Use the "Memorize position" and the "Recall to memorized position". It's under page 2 in the event commands.
-
Don't i have to enter cordinates?
-
When you use the memorize position it will store the cordinates in three variables. And when you use Recall it will teleport you to the cordinates stored in the three variables.
-
Can you show me how to make it as an event?See bellow.
"It goes like this:If you press C wille on the space map you are teleported to a shipmap.
Lets say you move your ship 2 spaces forward and press C,then once telleported onto the starship map.
You press C you telleport to the same place on the map as when you first pressed C in the same space as you last telleported."
-
You can't use the C button so I used the shift instead. But It would look something like this:
<>Key Input Proc: [0001: Button]
<>Branch if Var: [0001: Button] is 7
<>Memorize Location: [0002], [0003], [0004]
<>Variavle Oper: [0001: Button] Set, 0
<>Hide Screen: Use Default
<>Teleport: 0002: Ship (006,004) Retain Facing
<>Show Screen: Use Default
<>
: End
And to go back to your memorized location you use the Recall to memorized position instead of Memorize Location.
-
You're awesome thanks,Red Fox.By the way i used your templete
and made some one shot charas you wan't me to post them where
you got your templete?
-
Np. And yeah please post. You can post it in my gallery.