Sonic and Sega Retro Message Board: Question on porting Spin Dash charge speed - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 
Page 1 of 1

Question on porting Spin Dash charge speed to Sonic1

#1 User is offline Sky Shark 

Posted 03 June 2006 - 09:06 PM

  • Posts: 124
  • Joined: 26-March 04
  • Gender:Male
  • Project:Sonic 1 Rehash - I'm not saying its canned, I'm planning on some work on it this summer.
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.

#2 User is offline Rarmander 

Posted 03 June 2006 - 09:40 PM

  • Poetaster
  • Posts: 1913
  • Joined: 05-May 04
  • Gender:Male
  • Location:Winter Park
  • Project:Poetry
  • Wiki edits:1
You could make your own.

#3 User is offline Sky Shark 

Posted 03 June 2006 - 09:56 PM

  • Posts: 124
  • Joined: 26-March 04
  • Gender:Male
  • Project:Sonic 1 Rehash - I'm not saying its canned, I'm planning on some work on it this summer.
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 User is offline Tweaker 

Posted 03 June 2006 - 10:28 PM

  • Posts: 12389
  • Joined: 27-June 04
  • Gender:Male
Just the charge? Okay, lemme extract this right and quick...

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 User is offline Sky Shark 

Posted 03 June 2006 - 10:51 PM

  • Posts: 124
  • Joined: 26-March 04
  • Gender:Male
  • Project:Sonic 1 Rehash - I'm not saying its canned, I'm planning on some work on it this summer.
Thanks for the help Tweaker, I'm gonna start work on putting it into the game soon.

#6 User is offline XFox Prower 

Posted 27 July 2006 - 10:41 PM

  • Posts: 1196
  • Joined: 30-August 03
  • Project:x86 Assembly, Tails Search Assistant
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 User is offline drx 

Posted 28 July 2006 - 10:26 AM

  • <Shade> fuck MJ
  • Posts: 2087
  • Joined: 02-March 04
  • Gender:Male
  • Project::rolleyes:
  • Wiki edits:8
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
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users