Help about "finish level"

Talk about making games.

Help about "finish level"

Postby Game A Gogo » Sun Jul 24, 2005 4:16 pm

How can i make it change levels when an specefict amount of a Gem is collected by the main player
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 jazz_e_bob » Mon Jul 25, 2005 11:07 am

pseudocode:

make a global integer variable called gemCount and initialise it to 0;

On draw actor

if gemcount == 100 then end of level
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby Game A Gogo » Mon Jul 25, 2005 1:17 pm

Tanks a lot
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


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest