Game Development Community

Screen transitions and related questions.

by Jaybill · in Torque Game Builder · 02/13/2006 (6:58 pm) · 2 replies

I'm trying to figure out a straitghtforward method of doing screen transitions. I have a couple of questions that will help me figure out which way I want to do this.

1) Is there an easy Canvas.fadetoblack() or something along that line?

2) Exactly what coordinates is getcurrentCameraArea() returning? It appears to be the coordinates of a square, but it does not seem to be the square that the camera is covering.

3) (This may seem obvious but I'm a bit confused...) If I create a sprite and call setPosition(), is the X and Y I'm giving it where it will place the center or the upper left corner?

4) One thought I had for a transition was to create a small black square sprite, tile it to cover the screen while scaled really small, then scale it up to full size over time (half a second) so as to make the screen black. Has anyone done something similar?

5) What does GuiEffectCanvas do? I can't find docs on it, and when I try to use it in the GUI editor, it borks the engine.

Thanks in advance.

#1
02/14/2006 (12:12 am)
There is a GUI fade option that's covered in TDN here: tdn.garagegames.com/wiki/Torque_2D/StandardTutorials/Basics/SplashScreen

Not sure about 2. What results are you getting, and what are you expecting?

For 3, the centre of the image map is placed at the coordinates that you specify.

Number 4 would be quite easy to do, so your best bet might be just to implement it and see how it looks.

Don't know about GuiEffectCanvas. If you own TGE you can probably find out by searching the site. As only a T2D owner I'm a bit limited in searching stuff out on it.
#2
02/14/2006 (8:40 am)
@Philip - Thanks. Unfortunately, the method described there, unless I'm missing something, starts at black, fades in to a bitmap and then goes back to black. What I was hoping to do was fade out the stuff that's there already, i.e., the game. "You die. Fade to black." That sort of thing.