Hello,
I am wondering if there is a possibility to change the GreenfootImage class such that multiple images are not required to be created separately as files. While programming another game I saw that you could simply load one file of an image and take a "chunk" of that image file to be used in the game. In other words, one image sheet of various "projectiles" or animations can be loaded as one file, and methods can be used to specify rectangles of images that will be used as separate pictures or animation frames.
An example: I load an image file that is 100 pixels long and 20 pixels high, but within this one file there are 5 distinct images that are 20x20 pixels in area. As opposed to creating 5 individual files and loading all 5 in the program, I suggest that a method that allows a programmer to specify individual pictures within an image should be implemented.
This method is solely for convenience. I would like to see if such a method is possible to implement, or if it is possible to already do this type of image splitting from a single file. It would make image creation significantly more convenient, as the developer would only need to specify an area within a larger image rather than manually cropping each picture and saving those pictures separately (organization of these pictures would also be easier). I wouldn't mind manually cropping the images, but I am wondering if this suggestion could be made possible. Thank you!
-Celestics
P.S. I have no idea if this pertains to programming or other so sorry if the category is wrong D:

