Angle shenanigans

I cant share the game however i can share the code the second array works as intended but the first doesnot

what i want it to do is
check if there is a player if there is one move it in that direction
but if there is another sprite go towards that one instead
(the velocity 0 things were me trying to fix it they don’t do anything)
basically both do the same thing but the top one wont work

1 Like

Sorry, not much can be done without the entire context. No sharing = no help I’m afraid. If you really want to fix it without sharing, try the debugger

2 Likes