Actor stuck in left facing position
j75
Member, PRO Posts: 235
I have an actor that can move from left to right.
When no touch is pressed he faces front.
Press left, he faces left / Press right, he faces right.
The problem is, when the actor collides with another actor, it stays in the position it was facing during the collision.
For instance, say the actor is moving to the left and collides with another actor. After this collision he continues facing to the left even when no touch is pressed and he should be facing forward.
Sorry if this isn't clear. I'm having a hard time making this sound reasonable.
Is there a common fix for this? I am sure I just am missing some small bit to fix it.
Thanks.
When no touch is pressed he faces front.
Press left, he faces left / Press right, he faces right.
The problem is, when the actor collides with another actor, it stays in the position it was facing during the collision.
For instance, say the actor is moving to the left and collides with another actor. After this collision he continues facing to the left even when no touch is pressed and he should be facing forward.
Sorry if this isn't clear. I'm having a hard time making this sound reasonable.
Is there a common fix for this? I am sure I just am missing some small bit to fix it.
Thanks.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User