Does anyone know how to add recoil towards the player, when colliding with the enemy the enemy recoils in area2d and the player in Characterbody2d scrip

Does anyone know how to add recoil towards the player, when colliding with the enemy the enemy recoils in area2d and the player in Characterbody2d

It is the not a type of “forum feedback”, change the tag to “Help”