Knocked Back

GingerBGamesGingerBGames Member Posts: 390
edited November -1 in Working with GS (Mac)
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.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you can do this:

    have a rule in Actor A when it collides with actor B,

    interpolate self position x to self position x-30
  • GingerBGamesGingerBGames Member Posts: 390
    How would I get it to happen only once? A game attribute I am assuming?

    Actor A collides with Actor B
    AND
    game Attribute Charged is true

    then

    interpolate Self Position X to Self Position X-30
  • GingerBGamesGingerBGames Member Posts: 390
    That's a great way to do that, never thought of that one. Thanks guys.
Sign In or Register to comment.