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

Talk about making games.

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

Postby Joshua Worth » Sat Aug 27, 2005 12:25 am

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?
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Game A Gogo » Sat Aug 27, 2005 12:29 am

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
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Joshua Worth » Sat Aug 27, 2005 12:31 am

Where do I put that code, cause I want it to fade out when the title screen finishes. I've tryed that already.
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Game A Gogo » Sat Aug 27, 2005 12:34 am

how is your menu is compose??
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Joshua Worth » Sat Aug 27, 2005 1:04 am

few buttons and pictures, so I thought having a black square would be easyer.
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Game A Gogo » Sat Aug 27, 2005 1:21 am

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.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Joshua Worth » Sat Aug 27, 2005 3:24 am

thanks, that helped :lol:
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest