pixeltroid
Member
In the players collision event with the enemy I changed hspeed and vspeed -= 1 and it seems to somewhat work, EXCEPT the player starts to slide away from the enemy and with more hits, he becomes immobile.
Is there a better way to achieve the "recoil" effect (Example - the way Samus Aran acts when she is hit by an enemy)?
Any help would be appreciated!
P.S - Programming noob here. Please just tell me what code I can use and where to place it.
Is there a better way to achieve the "recoil" effect (Example - the way Samus Aran acts when she is hit by an enemy)?
Any help would be appreciated!
P.S - Programming noob here. Please just tell me what code I can use and where to place it.
Last edited: