I'm trying to knock back an enemy when it is hit by the player. I've been doing this by giving the enemy the platform behavior, and setting the vector X to Self.X+/-50. these are in two different events. If the enemy X is greater than the player X, it is +50, if it is less then the player X, it is -50. But for some reason even when the enemy X is lower than the player X, the enemy will still go to the right.
Why is this happening, and how can I fix it so that the enemy goes away from the player?