I’ve just completed the following tutorial: http://gotoandlearn.com/play?id=92
I think it’s great, but I’m having trouble with modifying it.
I want to get rid of the following line:
s.rotationY = 360 / _sprites.length * -i; // I'm using an array of sprites that I've created here instead of reading in images from XML, s is the current sprite that I am working with in a loop...
so that all my sprites are always facing me head on. Simply commenting out the line does this until I click one of the sprites, and then of course when my container rotates my sprites are now at the original angle they would have been at because there’s no Y rotation associated with it.
Does anyone know the math I can use to have my sprites face directly at me properly at all times?