I suppose you're using the platform behaviour? If so, just use the condition "Platform: Is falling" and "Object: On collision with enemy", then the action "Platform: Set vector Y to -500" (Doesn't have to be -500, but a negative number for upwards motion)