Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Great Vibes on October 30, 2020, 01:22:14 AM

Title: Move back to original position
Post by: Great Vibes on October 30, 2020, 01:22:14 AM
Hi playmaker,
      Probably a newb question but I can figure it out. I have an object that moves random int. on x axis. I want it to move back to its original position after its finished with its move. Anyone know how? Thanks. ???
Title: Re: Move back to original position
Post by: RC on October 30, 2020, 01:27:25 AM
You can save current position before your object moves. After your object moves, translate it back to current positions?
Title: Re: Move back to original position
Post by: Great Vibes on October 30, 2020, 01:43:25 AM
Thats what I've been trying. First state is "Get Position". Then the next state the object moves. Then thnext state is translate position to the stores "get position". But instead of the object going back to original position...it goes to a place far away from original position.
Title: Re: Move back to original position
Post by: djaydino on October 31, 2020, 03:15:28 PM
Hi.
When you get the position, store in a variable (call it Original Position for example)
Make sure that it is set to 'World' and not to self.

Translate will not move to a certain position.
I believe you need to use Move To (i cant check at the moment)