i'm working on a top down shooter type "hotline miami"
the character is moved by the arrows,
and he can aim and shoot with the mouse.
actually i use this :
bullet > set angle toward (mouse.x, mouse.y)
it works, BUT .
when the mouse is really near my character, things become buggy.
and when the mouse is very far from the charachter , you have a long way back if you want to turn around.
what i would like to do :
the aiming point is controled by the mouse, but its not the mouse.
the aiming point follow the direction of the mouse , but is bounded in a circle which the center is the character.
the aiming point is always on this circle at 300 pixel (for example) of the character. never closer and never far away .
so the mouvement you need to do to have a specific reaction will always be the same, despite the real position of the mouse.
i tried to be clear, dont know if you can understand what i mean.
if someone can help, it would be apprecied !