Wednesday, February 25, 2009

Surgery successful

I have successfully removed the turret and made it a seperate object, which is updated each cycle to the tank's position but has no rotation, yet. I did understand the linking from the examples, but I'd been neglecting the turret's constructor method.
Figuring out how to get the turret to point at the mouse will be fun. So far I can't remember enough trig to take the mouse x/y and the tank x/y and get the angle between the two. Then I'll have to convert that to whatever flash wants.
But first to find that mouse icon including tutorial for a cheater's way to figure out the mouse inclusion.

No comments:

Post a Comment