playMaker

Author Topic: How to make teleport feature ?  (Read 2904 times)

JohnSwe79

  • Playmaker Newbie
  • *
  • Posts: 4
How to make teleport feature ?
« on: February 03, 2018, 04:44:26 AM »
I have two spheres in my scene.
Sphere 1 and Sphere 2, both in different location.

I want to teleport Sphere 1 to Sphere 2 location.
Can someone type here what kind of action setup I need.

verybinary

  • Junior Playmaker
  • **
  • Posts: 81
    • The Museum of Digital
Re: How to make teleport feature ?
« Reply #1 on: February 03, 2018, 06:44:43 AM »
translate the sphere to the sphere it will join. set up settings to where the movement isn't slow.
or parent the sphere to the sphere and translate to 0,0,0 self

Kathar

  • Playmaker Newbie
  • *
  • Posts: 48
Re: How to make teleport feature ?
« Reply #2 on: February 03, 2018, 11:21:43 AM »
I'd use the Get Position action to get the position Vector of Sphere 2, then Set Position of Sphere 1 to the position Vector you just received

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How to make teleport feature ?
« Reply #3 on: February 03, 2018, 11:26:12 AM »
Hi,
Have a trigger for each location, then when triggered by the player you can store the player and then use 'Set Position' and set the position there the other location.

Now you could use a dummy object for easier positioning so you can easily change the position.
For this you need to use a 'Get Position' and store that in a variable and use that to set the position of the player.

Here is a sample :