How do you do knockback?

I’ve been trying to implement knockback to my game, but it isn’t working. How do I implement it?
My game link, https://flowlab.io/game/view/1572248

1 Like

Have it to where if the object collides with the sword/projectile/round, it activates an impulse block. If it gets hit on the left, then impulse to the right. Hit right, impulse left.

2 Likes

when Collision(type)-impulse forward (-number)

2 Likes

That’s what I said lol
Remember one for each side

1 Like

The type of knockback that I want to do is if the player character collides with a specific static object, then they get knocked back. How do you do that?

1 Like

Like we said. If it collides it impulses the opposite direction

Ok then, thanks for helping :smiley:

1 Like

No problem, if you have any more questions just ask!

I don’t know if I’m doing it wrong but it doesn’t work

Screenshot Flowlab Knockback

put it in forward.

Like shadow said put it in forward

I put it into forward, but it is still not working.

1 Like

It won’t work if you have a repeat into a velocity, such as keyboard movements, unless you turn off the repeat in the key block