Ball Closing and Opening Effect (Fade Effect)
by Cezar Augusto Ximenes Wagenheimer Lima · in Torque Game Builder · 08/28/2009 (1:37 am) · 2 replies
Hi Everybody!
I'm the programmer of the Abra Serie games, and I'm studing the possibility of porting this games to TGB!
Somebody have any ideia of how to do a (Ball Closing and Opening Effect) using TGB? Something similar to a Fade In and Fade Out effect.

Please take a look from 1:12 to 1:20 of this Video that shows the effect!
Is possible to do this in TGB???
Thanks!
I'm the programmer of the Abra Serie games, and I'm studing the possibility of porting this games to TGB!
Somebody have any ideia of how to do a (Ball Closing and Opening Effect) using TGB? Something similar to a Fade In and Fade Out effect.

Please take a look from 1:12 to 1:20 of this Video that shows the effect!
Is possible to do this in TGB???
Thanks!
About the author
Game Developer! Creator of Druids Battle of Magic and Abra Academy Series games.
#2
If however, you have your heart set on that exact effect, I suggest you modify the source code and make a special class with alpha testing similar to NeHe lesson 32.
If that's too much work, I'd go with the previous advise and play with png transparency and/or a theora control.
08/28/2009 (1:06 pm)
The opposite effect is a lot easier (Blackness descending to small black ball or small black ball enveloping screen in blackness). If you wanted to go that route, it is fairly trivial to setup a particle effect to do this for you. The TGB game Larvamortus uses this effect when the character dies.If however, you have your heart set on that exact effect, I suggest you modify the source code and make a special class with alpha testing similar to NeHe lesson 32.
If that's too much work, I'd go with the previous advise and play with png transparency and/or a theora control.
Torque Owner RollerJesus
Dream. Build. Repeat.
The best way I could think to do this in TGB would be to create an animated sprite as a png with transparency that performs that effect, then make it visible when you want to start the transition, begin to play it, then load the next section in the animation complete callback.
It would take some experimentation but should give you that effect.
There may be a better way to do this using the gui (maybe the guiTheoraCtrl) but I'm not aware.