playMaker

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

Great Vibes

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Move back to original position
« on: October 29, 2020, 10:22:14 PM »
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. ???

BasicBenny

  • Full Member
  • ***
  • Posts: 141
    • View Profile
Re: Move back to original position
« Reply #1 on: October 29, 2020, 10:27:25 PM »
You can save current position before your object moves. After your object moves, translate it back to current positions?

Great Vibes

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Move back to original position
« Reply #2 on: October 29, 2020, 10:43:25 PM »
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: 5477
    • View Profile
    • jinxtergames
Re: Move back to original position
« Reply #3 on: Today at 12: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)