In your picture, the first conditional branch says the following: If Event's X-coordinate is less than or equal to 4, perform movement. I believe you forgot to subtract the player's X with the event's X. Also, you would have to either find the absolute value of that result or square it accordingly.