{"author_name":"petterroea","cat":"LD #22","comments":[{"author_name":"delpes","time":"December 17, 2011 8:18 am","epoch":1324127880,"text":"float radiansToMouse = (float) Math.atan2(400 &#8211; input.getMouseX(), 300 &#8211; input.getMouseY());<br \/>\n float degreesToMouse = (57.2957795f * radiansToMouse) * -1;<br \/>\n heroImage.setRotation(degreesToMouse);","spam":"N"},{"author_name":"","time":"December 17, 2011 8:26 am","epoch":1324128360,"text":"Yes, thanks! You saved my day!","spam":"N"}],"epoch":1324127640,"likes":0,"metadata":{"p_key":"61700","p_author":"petterroea","p_authorkey":"5022","p_urlkey":"97465","p_title":"Looking good, but i have a problem!","p_cat":"LD #22","p_event":"LD22","p_time":"1324127640","p_likes":"0","p_comments":"2","p_status":"UPD5","us_key":"5022","us_name":"petterroea","us_username":"petterroea","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>Yup. I need the player, at a constant coordinate of 400, 300, to face the mouse. And i suck at stuff like this? Any help?<\/p>\n <p>rotation degrees = 0 when facing right. Up is 270. ect&#8230;<\/p>","time":"December 17th, 2011 8:14 am","title":"Looking good, but i have a problem!"}