Movement Help
mikesway79
Member, PRO Posts: 3
I want to have an actor move into the stage, stop and then reverse on the same path off the stage. I can get the actor to move through the stage and I get it to move to a location and stop, but not reverse and leave the stage. Am I missing something.?
Comments
You'll need to provide some more details about how you are moving the actor. Are you using a Move behavior, Change Velocity, Interpolate...?
You should be able to add 180° to the actor's self.rotation and then move it that way.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I chose "Move To", thinking that would be easier.
If you're using Move To then you'll need to calculate where a point would be along the vector pointing in the opposite direction and use Move To again or you'll need to adjust the direction the actor is facing (as I suggested above) and use something like Move.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Got it. Thanks.