Expirience

Talk about making games.

Expirience

Postby Crusader » Fri Aug 19, 2005 8:50 am

:D HI,coulld somewon tell me how to make expirience.You know
the player kills 10 enemy planes and the expirience becomes 3.
Visit animationprotector.i8.com
User avatar
Crusader
 
Posts: 49
Joined: Wed Aug 17, 2005 11:15 am
Location: Bulgaria
Score: 0 Give a positive score

Postby jazz_e_bob » Fri Aug 19, 2005 11:01 am

global variables
int planeCount = 0;
int experiencePoints = 0;

on destroy plane
planeCount ++;
if (planeCount == 10)
{
experiencePoints += 3;
planeCount = 0;
}

This code may work matey...
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


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest