Difference between revisions of "Change spike behaviour in Sonic 2"
From Sonic Retro
Line 1: | Line 1: | ||
+ | |||
To change the [[Spike damage behavior|spike behaviour]] to that of ''[[Sonic the Hedgehog (16-bit)|Sonic the Hedgehog]]'', delete the following lines: | To change the [[Spike damage behavior|spike behaviour]] to that of ''[[Sonic the Hedgehog (16-bit)|Sonic the Hedgehog]]'', delete the following lines: | ||
+ | |||
+ | ===GitHub=== | ||
<syntaxhighlight lang="asm"> | <syntaxhighlight lang="asm"> | ||
tst.w invulnerable_time(a1) ; is character invulnerable? | tst.w invulnerable_time(a1) ; is character invulnerable? | ||
bne.s + ; rts ; if yes, branch | bne.s + ; rts ; if yes, branch | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ===Xerowhirl=== | ||
+ | |||
+ | <syntaxhighlight lang="asm"> | ||
+ | tst.w invulnerable_time(a1) | ||
+ | bne.s return_15AC4 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 00:10, 29 September 2017
To change the spike behaviour to that of Sonic the Hedgehog, delete the following lines:
GitHub
tst.w invulnerable_time(a1) ; is character invulnerable?
bne.s + ; rts ; if yes, branch
Xerowhirl
tst.w invulnerable_time(a1)
bne.s return_15AC4
Guide by User:Shadow05.