Change the sprite image to a new loaded image. If the new image has a different size or shape from the old image the sprite may look distorted as a result, you can fix this by resetting the sprite dimensions using SetSpriteSize. If the sprite is animated you may also need to call SetSpriteAnimation again.
In the case of circle and polygon sprites you may set whether the sprite uses this new image to change its collision shape. Box shapes are not affected by image changes. Using this command will clear any animation frames you have set with any of the sprite animation commands.
SetSpriteImage ( iSpriteIndex, iImageIndex, bUpdateShape )
SetSpriteImage ( iSpriteIndex, iImageIndex )