Moving back when taking damage
Okysho
Member Posts: 158
Ok, Besides boss AI Here's one last problem I'm running into in my game creation.
Like most games of this type, I want my character to be knocked backwards a little bit when he takes damage. accompanying this is playing an animation of flinching. I tried adding a behaviour that makes him change velocity, however this ended up to creating a sort of in-game bug where the main character would spawn 300 blaster shots in both directions and lose all his health.
Anyone want to give me a hand in making this bahaviour work?
Like most games of this type, I want my character to be knocked backwards a little bit when he takes damage. accompanying this is playing an animation of flinching. I tried adding a behaviour that makes him change velocity, however this ended up to creating a sort of in-game bug where the main character would spawn 300 blaster shots in both directions and lose all his health.
Anyone want to give me a hand in making this bahaviour work?
Comments
interpolate self positionx to self position x-5
then lower the duration in the interpolate rule to make him move back faster