Bounce off enemy without restitution.

Here is how i want it. I have a main player. There is also an enemy. If the main player touches the enemy, it(the main player) will bounce in the opposite direction with the collision. If the main player touches the ground, nothing happens. The main player only bounces off the enemy.
I need to know quick!
Thanks so much!
I need to know quick!
Thanks so much!
Comments