is it possible to make enemies with health in one class
What are the differences between the classes?
danpost wrote...
Remove 'static' from the 'health' declarations lines in the Skeleton classes at line 20.
Actually, I do not think anything in those classes should be declared as 'static' (as yet), except for maybe the images. Remove all occurrences of the word 'static' in those classes.
Note (do not make any changes for this unless you fully understand or get further help on this):
I mentioned the images because currently, as your code is, each enemy will have its own set of images to use (even though the images are all exactly the same). By making the images 'static', only one set of images will be created for all enemies to use (this would be a great savings on memory usage as images require chunks of it). Also, they can be initialized when the project is compiled saving on CPU tasking during run-time. The fields can even be made as class constants using the 'final' keyword. Furthermore, all the images can be scaled appropriately during compilation, as well (if needed, you can ask for help on this). Placing the images in an array would also help for organizational purposes and making the code less bulky.