How to make speed shoes play music

Discussion in 'Tutorials Archive' started by Sonic master, Dec 8, 2010.

Thread Status:
Not open for further replies.
  1. Sonic master

    Sonic master Well-Known Member Member

    Joined:
    Mar 27, 2010
    Messages:
    303
    Step one go to Obj2E_ChkShoes:


    And find




    move.w #$E2,d0



    And replace e2 with the song number for example




    move.w #$11,d0



    Now to fix the music after it wheres off


    First find Obj01_ChkInvin:


    And right after




    cmpi.w #$C,($FFFFFE14).w


    bcs.s Obj01_RmvInvin



    Add:




    tst.b ($FFFFFE2E).w ; does Sonic have speed shoes?


    bne.s Obj01_ChkShoes



    this is to prevent a glitch when you get an invincibility monitor while the speed shoe music is playing


    And now go to Obj01_ChkShoes:


    And after:




    move.w #$600,($FFFFF760).w ; restore Sonic's speed


    move.w #$C,($FFFFF762).w ; restore Sonic's acceleration


    move.w #$80,($FFFFF764).w ; restore Sonic's deceleration


    move.b #0,($FFFFFE2E).w ; cancel speed shoes



    Add:




    tst.b ($FFFFFE2D).w ; does Sonic have invincibility?


    bne.s Obj01_ExitChk



    And now to make the song stop and play the normal song replace





    move.w #$E3,d0


    jmp (PlaySound).l ; run music at normal speed



    with




    moveq #0,d0


    move.b ($FFFFFE10).w,d0


    cmpi.w #$103,($FFFFFE10).w ; check if level is SBZ3


    bne.s playthemusic


    moveq #5,d0 ; play SBZ music


    playthemusic:


    lea (MusicList).l,a1 ; load music playlist


    move.b (a1,d0.w),d0 ; add d0 to a1


    jsr (PlaySound).l ; play normal music



    Also you can replace MusicList2 with MusicList and comment out the include


    Here is a video of it in action





    Click here to download the port of the sonic adventure dx speed shoes port (the one in the video)


    Also if you will need some extra slots for some music and a quick way to do that is here


    Also to make the slots go from 00 to ff follow this guide
     
    Last edited by a moderator: Dec 8, 2010
    MotoBadnik likes this.
  2. RetroX

    RetroX Active Member Member

    Joined:
    Jun 15, 2012
    Messages:
    46
    Location:
    United States
    Cool Code, Thanks
     
  3. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Please, stop bumping old thread with non-contributing content.
     
Thread Status:
Not open for further replies.