Greetings!
I am working on a megaman type platformer/shooter, and I am building everything from the ground up. I am now at a point where I want to make enemies cause damage to player upon contact. To make things less insane for the player, I want it to bounce them back, and make them invulnerable for 1 second after contact. The X-speed doesn't seem to happen, although the y does. The player just bounces up, and not away from the enemy (which is also advancing toward the player, not sure if that has anything to do with my issue).
Here is my code for the bounceback. I thought 50 was a good speed to set for x, but it doesn't go anywhere.
Also, both the player and the enemy have no friction, but are set as normal actors that can be affected by gravity. Jumping seems to work just fine, so I think it's something to do with the collision happening too many times in a second, maybe? The enemy is usually rubbing up against the player with the follow logic I pieced together for enemies.