How do I make a spitre shoot?

Hello I am new to Codea and need some help.
How to I get a sprite to shoot another sprite and destroy another sprite when it hits it

Look at the Bit Invader example - it does both the things you are asking about