Is there a way I can test for the size of an Image object. For instance, I want to do collision detection, but the image my sprite is showing is depending on the sprite’s state, and different images of different animations have different sizes.
I need to be able to test the size of the current image in order to create my bounding boxes each update. Anyone know how I can do this in code?