Hello All, I would really appreciate it if someone could point me to the right direction of making this kind of attack where when my character shoots hes pushed back, just like the brominator in Broforce : I would really appreciate your help!! Thank you
If the character has physics, then you could add forces to the rigidbody with each shot, slowly pushing him backwards from the way his gun is facing. If the character is not physics based, you could fake it by just moving it backwards with transform position, and make him animate to jitter up and down a bit.
Just add a force or vector opposite of the way the character is facing. Here is code: Code (CSharp): int KnockBackForce = 10; rb.GetComponent<Rigidbody2D>(); rb.AddForce(transform.right * KnockBackForce * -1);