Knocked Back
Hello GS'ers,
Does anyone know how I can make an actor (A) that when struck by another actor (B) then actor A get's knocked back a little? I would only need this to happen once.
So you have one actor, A, walking from left to right. Actor B is running from right to left. Once Actor B comes in contact with actor A, A get's knocked back a little, and Actor B continues off the screen. Thank you.
Does anyone know how I can make an actor (A) that when struck by another actor (B) then actor A get's knocked back a little? I would only need this to happen once.
So you have one actor, A, walking from left to right. Actor B is running from right to left. Once Actor B comes in contact with actor A, A get's knocked back a little, and Actor B continues off the screen. Thank you.
Comments
have a rule in Actor A when it collides with actor B,
interpolate self position x to self position x-30
Actor A collides with Actor B
AND
game Attribute Charged is true
then
interpolate Self Position X to Self Position X-30