Comments on: Pingus on Android https://www.setera.org/2010/11/21/pingus-on-android/ Ramblings of a geek Mon, 04 Mar 2013 22:46:10 +0000 hourly 1 https://wordpress.org/?v=4.5.24 By: Craig Setera https://www.setera.org/2010/11/21/pingus-on-android/comment-page-1/#comment-60 Sat, 27 Nov 2010 00:31:06 +0000 https://www.setera.org/?p=272#comment-60 Steve,

Thanks. I think you were close. I hadn’t posted again because I was digging into multitouch zoom support. With zoom to 100% and the ability to drag around the scene, it was clearer that my original hardcoded numbers weren’t quite correct. Playing around with it a bit, I ended up getting a conversion that actually makes sense and works… a great combination!

setPosition(position.x – height, position.y + height);

]]>
By: Steve Wetherill https://www.setera.org/2010/11/21/pingus-on-android/comment-page-1/#comment-59 Sat, 27 Nov 2010 00:15:17 +0000 https://www.setera.org/?p=272#comment-59 Hey Craig – so if you are rotating around 0,0 and if that is the top left corner, then if you rotate by 90 degrees in a clockwise direction, the rotation point will now be the top right corner, which may or may not be what you want. In that case you’d have to add (what was) the height to the x position to move the top left of the rotated image to the original location. Just a thought!

]]>