How do i find the number of degrees to rotate my image to make it point towards the mouse?
im dumb
BlitzMax Forums/BlitzMax Programming/im dumb pseudo code since I don't know blitzmax:
dx#=mousex()-imagexpos()
dy#=mousey()-imageypos()
angle=atan2(dy,dx)
or something along those lines.
dx#=mousex()-imagexpos()
dy#=mousey()-imageypos()
angle=atan2(dy,dx)
or something along those lines.
Thanks.
http://www.blitzbasic.com/Community/posts.php?topic=69789#781315
you want to use the AngleToTarget and the Point functions.
you want to use the AngleToTarget and the Point functions.