Detecting angles

I’m sure this is easy and I know i’ve done it before, but does anyone know how to detect if the mouse (Or an object) is to the left or right of an object. I’m doing this for a more effective menu, that slides from left to right.
I’ve tried proximity but it just detects the location so using two filters for 180+ and -180 isn’t working.

3 Likes

Use a mouse move, that goes INTO a filter, then extract the x of whatever object you’re trying to do it for, and hook that up to the VALUE of the filter. Connect the output to a flip.

You’ll want it to be greater than, or less than 0, I forget. (0 is replaced by the x position when the game runs)

6 Likes