I just want to know, is it possible to create animation from one file with the animation sprites tiled together, and use code to specify picking only a certain area in a file?
If so, can someone tell me how.


setImage(images[++imageNumber % totalNumberOfImages]);