• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker (Solved) Getting negative value for point_direction?

Biosyn

Member
Hi,

I've tried googling for a solution, but can't find it. I'm basically just trying to get my angle variable for an AI pointer object to get negative values. Ideally, it'd be preferable to use point_direction which afaik only shows an angle value between 0 and 359 inclusive. I'd like the function to get values between -90 and +90 inclusive when the pointer object is facing right.

I tried clamping with a negative value, as well as trying to set the angle to 360-point_direction(...) but neither worked.

Would appreciate any input!
 
Top