Actually, you want to use SPSET instead of SPDEF. SPDEF is used to adjust the images used when creating a sprite.