Hi,
I'm working on a game and I want to throw obstacles across the screen. I have a "box" class for the obstacles and each time one goes out of the sketch, a new box should come from the opposite side. I'm using a class so that when the first ten or so pass, I can increase the level to make them go faster, etcetera.
What kind of function will allow me to create a new instance of the box class each time the previous box leaves the sketch?
I'm guessing I would need to create an array of boxes for the first level and have the for loop control the incrementation of the array?
how can I make this work?
1