(This asset uses physics). Are you making an action-rpg? Need knockback? Here it is. This is especially meant for action-rpg games, but it should work with any game that uses physics.
Player can attack and enemy receives damage and knockback.
Enemy can attack and player receives damage and knockback.
Script: physics_move_towards(object) - For moving towards an object when using physics.
Easy to use.
Code is commented.
GameMaker: Studio 2 version added!
Added more comments, polished code and more.