ok I've made a class. Normally to make an object you'd do this:
and bug was now an object of the ENEMY class.
What I want to do though, is create an array of bugs, like bug[1], bug[2], bug[3], etc.
I need to have 50-100 of these, and later on I'm gonig to have a for loop that goes through them like so:
How do I go about making an array of them?
I'm using .NET 2003, if that helps with anything.
Thanks guys.
Code:
ENEMY bug;
and bug was now an object of the ENEMY class.
What I want to do though, is create an array of bugs, like bug[1], bug[2], bug[3], etc.
I need to have 50-100 of these, and later on I'm gonig to have a for loop that goes through them like so:
Code:
for(int i=1; i<=10;i++) {
if(bug[i].visible=true) {
blah;
}
}
How do I go about making an array of them?
I'm using .NET 2003, if that helps with anything.
Thanks guys.