Game Development Community

Opening Icon Animation

by Justin Mayhew · in Torque Game Builder · 04/20/2009 (2:29 pm) · 1 replies

Alright, so I have a icon I want to appear (fade in)onto a black backround. This Icon (My logo) will rotate from its center and finally come to rest in its final form and then fade out. Total duration between fade in and fade out roughly 5-8 seconds <tentatively>.

How do I go about creating this. I have the art skills necessary to make a polished image. I can therby manipulate it however I want to import it into TGB. The question is how do I make this image react the way that I intend.
Here is my thoughts, I just wanted to check with you guys first (looking before I leap)...

1. I can rotate the image easily in Photoshop, precision and everything. Then save a series of these images in whatever format, .jpg or .png etc and make a animated sprite out of all of them. This seems pretty large to me however...

2. Is there a plug in or something I can make this animation on? I know I could do it on flash very well, but could I save the segment and then import it into TGB to play when I want it to through programming and what not? This seems to me to be the better solution than above.

3. Some other stellar idea you guys could come up with to help me out here, for example--> "Justin, what the hell are you thinking? Why not do it <this way> and save your self the gray hair... etc."

#1
04/20/2009 (5:31 pm)
If you're just talking about a simple 2D rotation, object.setAngularVelocity() should do it. Positive numbers for clockwise. If you want to do it more manually in some loop, the object.owner.rotation field should have the current degree of rotation (I think).