I added that code, Now the game won't boot. I think I need a different code, Maybe if I added something from an object that does hurt Sonic?
I'm sorry, I'm not quite sure what you mean. Do you mean to replace some code in the Robotnik Monitor object (Code I posted), Or find a monitor I am not using in Sonic 1?
EDIT: Here is the code for hurting Sonic by means of spikes. Maybe I could use this to my advantage?
Obj36_Hurt: ; XREF: Obj36_SideWays; Obj36_Upright
tst.b ($FFFFFE2D).w ; is Sonic invincible?
bne.s Obj36_Display ; if yes, branch
move.l a0,-(sp)
movea.l a0,a2
lea ($FFFFD000).w,a0
cmpi.b #4,$24(a0)
bcc.s loc_CF20
move.l $C(a0),d3
move.w $12(a0),d0
ext.l d0
asl.l #8,d0
sub.l d0,d3
move.l d3,$C(a0)
jsr HurtSonic
Edit: Scrolling through the ASM, I found an instance "Obj2E_NoMusic" and it's contents are blank. Can I tell the Eggman object to ridirect there and put a code that would hurt Sonic?
Edited by Bluesfire, 01 June 2012 - 03:11 PM.