Page 1 of 1

Fading in and out with a black square at a certain frame

PostPosted: Sat Aug 27, 2005 12:25 am
by Joshua Worth
I have made a black square 640x480, and placed it over a title screen. The title screen is a animation, and I want the title screen to fade out(because of the black square fading in)when the animation finishes. When the black square fades in completely, I will move it over the main menu, and fade the black square out again. Can anybody help me with this?

PostPosted: Sat Aug 27, 2005 12:29 am
by Game A Gogo
Im not shure if tis is what you want:in draw actor of the menu-
Code: Select all
transp=transp-0.01;


hope this help

PostPosted: Sat Aug 27, 2005 12:31 am
by Joshua Worth
Where do I put that code, cause I want it to fade out when the title screen finishes. I've tryed that already.

PostPosted: Sat Aug 27, 2005 12:34 am
by Game A Gogo
how is your menu is compose??

PostPosted: Sat Aug 27, 2005 1:04 am
by Joshua Worth
few buttons and pictures, so I thought having a black square would be easyer.

PostPosted: Sat Aug 27, 2005 1:21 am
by Game A Gogo
http://www.freewebs.com/game-a-gogo/Black_body.png(copy it to the adress bar.)
Try that image and on infinit,on animation finish-drestroyd event actor and all the other actor(from the menu)
on animation finish-drestroyd event actor

or maybe, after animation finish change animation direction(to backward)+ and after the two animation is done(Whit a timer(Take the time that it take for the animation finish and multiply by two)and put it on create timer on create actor) and on the timer event, destroyd the event actor.

PostPosted: Sat Aug 27, 2005 3:24 am
by Joshua Worth
thanks, that helped :lol: