File Name: | Sprite Shooter |
Submitted: | 2017-09-14T17:06:03+02:00 by Erik |
Authors: | Erik |
Type: | |
Includes GFX: | No |
Includes Hijack: | No |
Featured: | No |
Description: | 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 (terrible) attempt; this uses none of his code though.
Requested and tested by gbreeze, yell at him if there's any bugs.
* Uses $1FD6,x to determine this. If you have any sprites which modify this table it may break. |
I suggest you to hire a better tester as gbreeze didn't test this code in all possibile settings: This code crashes when you spawn a sprite with "unlimited" spawns.
I also suggest you to set the no-contact timer with Mario on the sprite (so that in case you spawn one, they won't kill you when you run faster than the spawned sprite), Mario's speed is added to the spawned sprite's one (just as a bonus) and also add extra byte support (after all, some people want to spawn sprites in a specific state which only are achieved with extra bytes).
Follow Us On