pointAt behavior not reading information properly

in my game when you press the space bar the character is supposed to fly towards the cursor. It works properly until the camera starts scrolling, bc then the player sprite starts going crazy and flipping randomly in the sky. I checked the code and the PointAT behavior seemed to read random numbers and not the cursors X and Y.

what it looks like in game:
what the behavior looks like:
my mouse cursor in both screenshots is at the right of the screen, but for some reason its the sprite is pointing in a completely random direction. can someone explain to me why this is happening?

1 Like

Set the MouseMove to “Use game coordinates”