Hi guys i have a little problem, i made this simple movement script, If Pg Damage Boolean is false you can move, If Pg Damage Boolean is true you receive an impulse that push you back( X - 25000), so if you arrive from the left side everything its ok, you overlap the Enemy pawn and the boolean became true, but if you arrive from the right side you will be pushed in the wrong size How i can fix that issue ? I want that if you arrive from the right side you will be pushed in X 25.000. There is an “Enemy” in the middle that follow the player. Thank you.
I try this, But now the player is pushed in the position, like if the result was 0