GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Movement Help

mikesway79mikesway79 Posts: 3Member, PRO

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

  • tatiangtatiang Posts: 11,828Member, Sous Chef, PRO, Senior Sous-Chef

    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

  • mikesway79mikesway79 Posts: 3Member, PRO

    I chose "Move To", thinking that would be easier.

  • tatiangtatiang Posts: 11,828Member, Sous Chef, PRO, Senior Sous-Chef

    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

  • mikesway79mikesway79 Posts: 3Member, PRO

    Got it. Thanks.

Sign In or Register to comment.