Charas-Project

Game Creation => Requests => Tutorials => Topic started by: Fisherson on June 15, 2008, 04:34:32 PM

Title: Tellepporting help
Post 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?
Title: Re: Tellepporting help
Post by: Red Fox on June 15, 2008, 09:16:23 PM
Use the "Memorize position" and the "Recall to memorized position". It's under page 2 in the event commands.
Title: Re: Tellepporting help
Post by: Fisherson on June 16, 2008, 03:05:15 PM
Don't i have to enter cordinates?
Title: Re: Tellepporting help
Post by: Red Fox on June 16, 2008, 03:48:52 PM
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.

Title: Re: Tellepporting help
Post by: Fisherson on June 16, 2008, 05:39:03 PM
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."



Title: Re: Tellepporting help
Post by: Red Fox on June 17, 2008, 08:59:05 AM
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.
Title: Re: Tellepporting help
Post by: Fisherson on June 17, 2008, 06:19:26 PM
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?
Title: Re: Tellepporting help
Post by: Red Fox on June 17, 2008, 06:48:25 PM
Np. And yeah please post. You can post it in my gallery.