We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So I am making somekind of game that you have airplanes shooting meteorites. But I need some help with Array in objects to add and remove that meteorite object in my array. And i'm using the "class" function.
Answers
Well, does each plane need to keep track of it's own set of meteorites?
Or would it just be best to have some planes and some meteorites?
The difference is this:
vs this:
Also, since you will be adding and removing things from your Array of objects, I wouldn't use an Array at all! Instead, I suggest you use and ArrayList!
Let's end this discussion, as there is actual code in your other discussion.
https://forum.processing.org/two/discussion/26464/objects-in-arrays