playMaker

Author Topic: Move back to original position  (Read 827 times)

Great Vibes

  • Playmaker Newbie
  • *
  • Posts: 11
Move back to original position
« 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. ???

RC

  • Full Member
  • ***
  • Posts: 148
Re: Move back to original position
« Reply #1 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?

Great Vibes

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Move back to original position
« Reply #2 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Move back to original position
« Reply #3 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)