How would I make a tower defence game in GE?
I would quite like to make one and any help would be appreciated!
int i;
for(i=0;i<MAX_CREEPS;i++)
{
if(creeps[i][INDEX] == -1) // if creep doesn't exist
{
creeps[i][INDEX]=cloneindex; // stores the index
// if you use different actors for each creep you need to record that here as well
creep_index = i; // sets the actor variable so it knows which creep it is
break; // escape the forloop
}
}
int i;
for(i=0;i<MAX_CREEPS;i++)
{
if(creeps[i][INDEX] == -1) // if creep doesn't exist
{
creeps[i][INDEX]=cloneindex; // stores the index
// if you use different actors for each creep you need to record that here as well
creep_index = i; // sets the actor variable so it knows which creep it is
break; // escape the forloop
}
}
Users browsing this forum: No registered users and 1 guest