How do I make an actor go back to the start without resetting the timer?
pe6169
Member Posts: 3
Thanks ... Paul
Best Answer
-
tatiang Posts: 11,949In your main actor, create two attributes: self.originalX and self.originalY (both real).
At the top of your main actor's rules, add two behaviors: Change Attribute self.originalX to self.position.X and Change Attribute self.originalY to self.position.Y.
Then, add a rule When actor collides with [other actor or tag] Change Attribute self.position.X to self.original.X and Change Attribute self.position.Y to self.original.Y.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks...paul