Sonic 1 - Ending an Act Without Having Sonic Run Off Screen

Discussion in 'Discussion and Q&A Archive' started by presto, Oct 19, 2014.

Thread Status:
Not open for further replies.
  1. presto

    presto Raised from the dead... Member

    Joined:
    Oct 12, 2014
    Messages:
    40
    Location:
    Cluj-Napoca
    Hello!

    I am a newbie in Sonic hacking and I've been wondering how to make an Act end without having Sonic Off-Screen. I am using the Hivebrain dissasembly. I tried changing the Signpost routine but the Act won't end until I make Sonic run offscreen!

    Thank you!
     
    Last edited by a moderator: Oct 19, 2014
  2. Pacca

    Pacca Having an online identity crisis since 2019 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,175
    Location:
    Limbo
    go to Obj0D_SonicRun and find these four lines:

            btst    #1,($FFFFD022).w

            bne.s    loc_EC70

            move.b    #1,($FFFFF7CC).w ; lock    controls
            move.w    #$800,($FFFFF602).w ; make Sonic run to    the right

    delete or comment them out

    then remove these bits of code:

    loc_EC70:
            tst.b    ($FFFFD000).w
            beq.s    loc_EC86
            move.w    ($FFFFD008).w,d0
            move.w    ($FFFFF72A).w,d1
            addi.w    #$128,d1
            cmp.w    d1,d0
            bcs.s    locret_ECEE

    loc_EC86:
            addq.b    #2,$24(a0)

    It should do as you wish it to.

    P.S. This is actually an awesome idea! Can I use it? :3
     
    Last edited by a moderator: Oct 19, 2014
  3. presto

    presto Raised from the dead... Member

    Joined:
    Oct 12, 2014
    Messages:
    40
    Location:
    Cluj-Napoca
    Thanks!

    P.S: Of course, you helped me. :D
     
Thread Status:
Not open for further replies.