This sprite will cause the level to end when all the enemies on screen are killed. This version ignores sprites that don't turn into a coin when the goal tape is passed.
Uses first extra bit: YES
When the first extra bit is clear, the sprite will trigger the regular exit. When it is set, the sprite will trigger the secret exit.
Read the readme if you want to use secret exit + no walk config.
Added a readme about secret exits. They only work if you allow the player to walk. This is an in-game piece of code, if you wanna change this behaviour, read the readme.
Fixed a bug with setting up secret exits.
To not stop Mario from walking after ending the level, set the first extra property byte to 1 (this is required to trigger the secret exit unless you make the hex edit).
To change the music played at level end, change the second extra property byte (you usually want 3 or 4 if you're using AMK).
If you have problems with the music stopping after beating the level, add this