Adding a character into Player Select

Discussion in 'Discussion and Q&A Archive' started by shadowbeasts, Dec 14, 2009.

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

    shadowbeasts I'm Legend Member

    Joined:
    Jan 5, 2009
    Messages:
    286
    Location:
    Good 'ol USA.
    I'm trying to add a secret character into Sonic 2 and the only problem is getting the name on the player select in the options menu and then making it selectable. So how do you do this.
     
  2. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Since I have the info for this stored somewhere, I'll go ahead and post this. Do note that I refer to Knuckles but you can change your stuff to your character. First, go to InitPlayers & replace InitPlayers_TailsAlone with:



    InitPlayers_TailsAlone:
    subq.w #1,d0


    bne.s InitPlayers_KnuxAlone


    move.b #2,(MainCharacter).w; load Obj02 Tails object at $FFFFB000


    move.b #8,(Tails_Dust).w; load Obj08 Tails' spindash dust/splash object at $FFFFD100


    addi.w #4,(MainCharacter+y_pos).w


    rts


    InitPlayers_KnuxAlone:


    move.b #$4D,($FFFFB000).w


    move.b #8,($FFFFD100).w


    rts



    Change $4D if you changed where the object is.


    Now we have to make it so you can choose Knuckles on the title screen. Go to word_917A & replace $2FF with $3FF.


    Next, go to off_92DE. After byte_981C add:



    dc.l byte_KTEA



    Now we have to add that KTEA line, so simply search for byte_981C & you'll find the options screen text, after 981C's line add:


    Code:
    byte_KTEA:  dc.b  $E,"KNUCKLES ALONE "
    
     
Thread Status:
Not open for further replies.