I'm working on my Sonic1 hack in a dissasbaly and I have noticed other people have ported spin dash to Sonic1. Unlike the others I only want to port the build up speed like Super Peel out in SonicCD. Instead of using a new sprite animation I only want to use his running animation when charging the dash. After releasing the A button I want to have him run forward, not roll. If anyone could tell me what code I need to bring over to Sonic 1 and where to place it I would apprecate it greatly.
Page 1 of 1
Question on porting Spin Dash charge speed to Sonic1
#3
Posted 03 June 2006 - 09:56 PM
I would but I'm new to ASM and I don't know any ASM really. That's why I was gonna port part of the Spindash code.
#4
Posted 03 June 2006 - 10:28 PM
Just the charge? Okay, lemme extract this right and quick...
That should start you off. Credits to Stealth for the ported code (though to be honest I'm not sure how much of this particular code is changed).
Player_Charge_Spindash: move.b ($FFFFF602).w,d0 btst #1,d0 bne.w Player_Release_Spindash move.b #$E,$16(a0) move.b #7,$17(a0) move.b #2,$1C(a0) addq.w #5,$C(a0) move.b #0,$39(a0) moveq #0,d0 move.b $3A(a0),d0 add.w d0,d0 move.w Normal_Spindash_Speeds(pc,d0.w),$14(a0) tst.b ($FFFFFE19).w beq.s loc_31675C move.w Super_Spindash_Speeds(pc,d0.w),$14(a0)
Normal_Spindash_Speeds: dc.w $800 dc.w $880 dc.w $900 dc.w $980 dc.w $A00 dc.w $A80 dc.w $B00 dc.w $B80 dc.w $C00 Super_Spindash_Speeds: dc.w $B00 dc.w $B80 dc.w $C00 dc.w $C80 dc.w $D00 dc.w $D80 dc.w $E00 dc.w $E80 dc.w $F00
That should start you off. Credits to Stealth for the ported code (though to be honest I'm not sure how much of this particular code is changed).
This post has been edited by Tweaker: 03 June 2006 - 10:29 PM
#5
Posted 03 June 2006 - 10:51 PM
Thanks for the help Tweaker, I'm gonna start work on putting it into the game soon.
#6
Posted 27 July 2006 - 10:41 PM
I've noticed in some hacks such as Drx's Tails in Sonic 1, that the you go too fast and fly off screen. It doesn't result in death, but it won't refocus until you stop. Was this also happening in Sonic Jam?
#7
Posted 28 July 2006 - 10:26 AM
To be honest, I never considered that as a bug. I thought it was cool and just left it as it was :P
Page 1 of 1

