I am making a game where you are a space ship and there are other space ships that shoot lasers at you. I want the enemies to be able to shoot a laser by making a new laser object and when it reaches the end of he screen or hits its target it does its damage and gets removed from memory (lasers will be in an arraylist because there are multiple types of lasers). I want each laser to be stored in its parent classes array list but i don't know much about parents and childs in programming. I couldn't find a good tutorial anywhere on the processing website either. Can anyone tell me how to use parents and such, or think of a better way to shoot lasers?
1