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?
Hi, I'm working on a very simple game and have a temporary character at the bottom that should move up and down when the UP and DOWN keys are pressed. For some reason the character will not move when the keys are pressed and I'm not sure why. Any suggestions?