Game Development Community

Fade Out Scene

by Dave DAmico · in Torque Developer Network · 07/10/2008 (8:56 am) · 3 replies

Is there a way to fade out a scene?

What I want to do is:

1. Have the user get to a certain point in a scene
2. Call a fade function
3. After the fade is complete unload the current scene
4. When the scene is unloaded load a new scene
5. When the new scene is loaded I want to fade back in

Any suggestions?

Thanks,
Dave

#1
07/10/2008 (9:16 am)
Hmm, suppose one way to do this is to create a black or white bitmap (or whatever color you want to fade to) at some resolution and then push a fullscreen GuiFadeinBitmapCtrl on top of the canvas. Then you can just fade in the bitmap and schedule a function call to when the fade is complete. Do your scene thing (push the wait time while loading), fade back out, and pop the control.
#2
07/10/2008 (9:24 am)
Thanks for the quick repsonse.

I forgot to mention that I'm using TorqueX 2.0. Does that matter? I'm assuming it does since I couldn't find GuiFadeinBitmapCtrl. But I did see types for GuiSplash and GuiSplashStyle that have fade in/out properties. Is there some way i can use that? I'm new to torque so I'm not really sure how this all works.
#3
07/10/2008 (9:39 am)
Always tend to forget about TX...

If your question is specific to a certain GG product, then it's best to post in the respective forum, i.e. the TX forum in that case.

Unfortunately, I know next to nothing about TX and can't really help.