I checked "Don't lose rings when hit" code in this database and everywhere and all of them just branches the opcode that CLEARS rings counter but rings still spawns when Sonic is hurt.
I have improved these codes so that anoying rings stop spawning in screen when sonic is hurt (and dont lose current ones).
I submit some other codes i have found.
There is and opcode which TESTS if you have 0 rings.
If so, it JUMPS to a routine that kills you.
Else, BRANCHES to the next subrutine (6700????).
I BRANCH(6008) that BRANCH (6700????) to stop the next subrutine is executed, consequently, you dont lose rings, rings are not spawned in screen and rings losing sound doesnt play.
==============
Sonic the hedgehog
==============
Improved dont lose rings when hit (just like CPU tails)
01AFFE:6008
GOAL spheres has no effect in special stage (can't lose)
01BF2A:6010
Weird special stage (even using debug mode)
01B1E2:6004
Static special stage (stop rotation)
01BA54:6002
===============
Sonic the hedgehog 2
===============
Improved don't lose rings when hit (just like CPU tails)
03F896:6008
=============================
Sonic and Knuckles + Sonic the hedgehog 3
=============================
Slot machine's disabled elements (Blocks and GOAL spheres. Can't leave bonus)
04BED4:600C
Play music only. Don't play sounds
0013A2:6004
Play only sounds. Don't play music
00136A:6004
Improved don't lose rings when hit (just like CPU Tails)
0102B8:6008
I have improved these codes so that anoying rings stop spawning in screen when sonic is hurt (and dont lose current ones).
I submit some other codes i have found.
There is and opcode which TESTS if you have 0 rings.
If so, it JUMPS to a routine that kills you.
Else, BRANCHES to the next subrutine (6700????).
I BRANCH(6008) that BRANCH (6700????) to stop the next subrutine is executed, consequently, you dont lose rings, rings are not spawned in screen and rings losing sound doesnt play.
==============
Sonic the hedgehog
==============
Improved dont lose rings when hit (just like CPU tails)
01AFFE:6008
GOAL spheres has no effect in special stage (can't lose)
01BF2A:6010
Weird special stage (even using debug mode)
01B1E2:6004
Static special stage (stop rotation)
01BA54:6002
===============
Sonic the hedgehog 2
===============
Improved don't lose rings when hit (just like CPU tails)
03F896:6008
=============================
Sonic and Knuckles + Sonic the hedgehog 3
=============================
Slot machine's disabled elements (Blocks and GOAL spheres. Can't leave bonus)
04BED4:600C
Play music only. Don't play sounds
0013A2:6004
Play only sounds. Don't play music
00136A:6004
Improved don't lose rings when hit (just like CPU Tails)
0102B8:6008

Comment