And here's a new extra for Sam. It works similar to the super bullet. For every demon blood picked Sam can destroy an enemy with one touch.
The code is quite similar to the super bullet. Add a new counter variable (DEMON_BLOOD), a new item image, make it possible for the item to spawn as well.
At the item pickup we add this. If the player is Sam (means x = 1) increase the counter.
At the hurt enemy part we add this little snippet. If we have a DEMON_BLOOD, decrease the count and kill the enemy right away.
Have fun!
Previous Step Next Step
The code is quite similar to the super bullet. Add a new counter variable (DEMON_BLOOD), a new item image, make it possible for the item to spawn as well.
At the item pickup we add this. If the player is Sam (means x = 1) increase the counter.
.EffectDemonBlood cpx #1 bne .DeanDoesNotUseForce inc DEMON_BLOOD jmp .RemoveItem
At the hurt enemy part we add this little snippet. If we have a DEMON_BLOOD, decrease the count and kill the enemy right away.
lda DEMON_BLOOD beq + dec DEMON_BLOOD jmp .EnemyKilled+ dec SPRITE_HP,x bne .EnemyWasHurt .EnemyKilled
Have fun!
Previous Step Next Step
Attached Files
-
step83.zip (212.66KB)
downloads: 47
Create a custom theme




