|File Name||Pay To End Level|
|Submitted:||2014-06-21 08:56:48 PM by nick 139|
|Description:||When you hit this block, it will end the level if you have 30 coins.(You can change the amount) VIDEO: https://www.youtube.com/watch?v=rN0CT8RqCEI|
Nice block you got there, works fine too. The only problem I have is this:
whenevery you want to mess with the actlike setting ($1693) you should never forget to also change Y accordingly. $1693 only holds the low byte of the actlike setting, so if you tell the block to act like 0230 (instead of 0130) your code would make it act like 0229, because you didn't set Y.
So just add an LDY #$01 ontop
LDY #$01 ;\
LDA #$29 ; | Act like 0129
STA $1693 ;/
While you're at it, you may want to remove this RTL
STA $1DFC ;Play wrong sound
RTL ;<-- unneeded
The code keeps running and will run into the RTL after the MarioHeadInside label anyway, so there is no need for a second one.
Anime statistic on MyAnimeList
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?