Hello All!
I have a little top down tank with a rotating turret who's angle slowly follows the mouse. Works great! Now I want to implement a target icon that stays directly in front of the turret, but the y axis moves to the mouse position. I want to know when the turret is lined up with the mouse using this sprite.
I have tried a few things, but it doesn't quite work.
I tried:
Every Tick> Sprite Set position Turret ImagepointY(0), Mouse.x
and variants of this. I think I am way off base.
I (think) I need the event to do something like:
Set position of Sprite along Turret Angle at distance(Turret.x, Turret.y, mouse.x, mouse.y
My head hurts... HELP!