Difference between revisions of "Change spike behaviour in Sonic 2"
From Sonic Retro
m (Hivebrain moved page Change spike behaviour sonic 2 to SCHG How-to:Change spike behaviour in Sonic 2) |
m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Guide|Shadow05}} | |
− | + | To change the [[Spike damage behavior|spike behaviour]] to that of ''[[Sonic the Hedgehog (16-bit)|Sonic the Hedgehog]]'', find 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? | ||
Line 15: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | Delete them. | |
+ | |||
+ | ==Xerowhirl== | ||
+ | |||
+ | <syntaxhighlight lang="asm"> | ||
+ | tst.w invulnerable_time(a1) | ||
+ | bne.s return_15AC4 | ||
+ | </syntaxhighlight> | ||
− | |||
{{S2Howtos}} | {{S2Howtos}} | ||
− | + | ]] |
Latest revision as of 02:29, 16 November 2019
To change the spike behaviour to that of Sonic the Hedgehog, find the following lines:
GitHub
tst.w invulnerable_time(a1) ; is character invulnerable?
bne.s + ; rts ; if yes, branch
Delete them.
Xerowhirl
tst.w invulnerable_time(a1)
bne.s return_15AC4
]]