hey guys, the problem i am having is when the player collides with something while in the air he goes sailing back pretty fair. the code i have for the kick back on the ground works like a charm. here's the code i have for it:

Pain = 1 (pain is the kickback function) X of Player -3, Y of player -5.

Any suggestions on making this work in the air in the same manner?