I'm stuck with creating objects on the fly. I want to do something like:
1 2 3 4 5 6 7 8 9 10 11 12 13
class projectile {
...
}
int counter = 0;
if(leftclick) {
projectile projx; //Where x is the counter variable
counter++;
}
for(int i = 0; i < counter; i++) {
proji.move(); //Again, I want to replace i with a variable number
}