Tip: Layer 3 backgrounds and tides disappear when you hit a message box, so plan your level around that. For example, you can add a sublevel without layer 3 at the start/midpoint, and include your message there.
Allows you to shoot normal or custom sprites by pressing a button. This one allows you to limit how many sprites can be spawned, and adds an option to despawn any sprite spawned by this method*. Inspired by wiiq's attempt; this uses none of his code though.
* Uses $1FD6,x to determine this. If you have any sprites which modify this table it may break.