Also, if you are planning on adding and deleting lots of sprites in your game then you might want to try IanM's Matrix1 Utils which has a lot of useful functions for finding free ID's for Sprites as well as images, 3d objects, sounds, music, memblocks, etc...
ie:
function add_a_new_alien()
sprite_id = find free sprite() ` might be different (not got the manual handy)
` now make the alien and return it's ID
endfunction sprite_id
Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!