Player Select & Item Select

Discussion in 'Approved' started by Dracula, May 25, 2008.

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

    Dracula Sonic 2 Trialist

    Joined:
    Aug 9, 2007
    Messages:
    11
    Location:
    Top Floor
    Title: How to add Player and VS Items in the level select menu.


    Credits: s3kASM


    Guide by Dracula


    About: Pressing C to pick a character and pressing B for VS items instead of going to the options screen.


    Go to return_95A0, which should be this:



    Code:
    return_95A0:
    
    	rts


    And change it to this...



    Code:
    return_95A0:
    
    	bra.s	loc_7C8C
    
    	rts


    Now place this code above loc_95B8:



    Code:
    loc_7C8C:; CODE XREF: ROM:00007C86j
    
    	move.w	(Player_option).w,d0
    
    	btst	#5,(Ctrl_1_Press).w
    
    	beq.s	loc_7C8C_2
    
    	addq.w	#1,(Player_option).w
    
    	cmpi.w	#3,(Player_option).w
    
    	bcs.s	loc_7C8C_2
    
    	move.w	#0,(Player_option).w
    
    
    
    loc_7C8C_2:	
    
    	move.w	(Two_player_items).w,d0
    
    	btst	#4,(Ctrl_1_Press).w
    
    	beq.s	+
    
    	addq.w	#1,(Two_player_items).w
    
    	cmpi.w	#2,(Two_player_items).w
    
    	bcs.s	+
    
    	move.w	#0,(Two_player_items).w
    
    +
    
    	rts


    Now go to return_9658 which should be this:



    Code:
    return_9658:
    
    	rts


    And change it to this...



    Code:
    return_9658:
    
    	move.l	#$45AA0003,(VDP_control_port).l
    
    	move.w	(Player_option).w,d0
    
    	bsr.s	loc_965A_1
    
    	move.l	#$46AA0003,(VDP_control_port).l
    
    	move.w	(Two_player_items).w,d0
    
    	bra.s	loc_965A_1


    And finally, go to loc_965A which should be this:



    Code:
    loc_965A:
    
    	move.l	#$49440003,(VDP_control_port).l
    
    	move.w	(Sound_test_sound).w,d0
    
    	move.b	d0,d2
    
    	lsr.b	#4,d0
    
    	bsr.s	loc_9670
    
    	move.b	d2,d0


    And change it to this...



    Code:
    loc_965A:
    
    	move.l	#$49440003,(VDP_control_port).l
    
    	move.w	(Sound_test_sound).w,d0	
    
    
    
    loc_965A_1:	
    
    	move.b	d0,d2
    
    	lsr.b	#4,d0
    
    	bsr.s	loc_9670
    
    	move.b	d2,d0


    If you get an error, go to loc_9FE6:



    Code:
    loc_9FE6:
    
    	bsr.w	JmpTo_ClearScreen
    
    	bsr.w	sub_B262
    
    	jsr	Pal_FadeTo
    
    	move.w	#$18E,d0
    
    	btst	#6,(Graphics_Flags).w
    
    	beq.s	loc_A002
    
    	move.w	#$144,d0

    Replace "bsr.w Pal_FadeTo" to "jsr PalFadeTo"


    Now you can pick Sonic or Tails by pressing C and select vs items by pressing B.


    A preview of my level select menu:


    [​IMG]
     
    Last edited by a moderator: May 25, 2008
  2. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Sorry, I don't understand. What does this exactly do?
     
  3. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    You remember in S3K how you could push B (I think) to change character? Well, it adds this to the S2 level select, along with a command that can change whether it is teleport or all kinds of items for 2 player.
     
  4. Dracula

    Dracula Sonic 2 Trialist

    Joined:
    Aug 9, 2007
    Messages:
    11
    Location:
    Top Floor
    This code allow you to Press C to pick a character and press B for VS items instead of going to the options screen.
     
  5. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Ah right. That's pretty clever. I would use it, but I have a all-new level select anyway so pointless =P


    Nice guide anyway.
     
  6. Dracula

    Dracula Sonic 2 Trialist

    Joined:
    Aug 9, 2007
    Messages:
    11
    Location:
    Top Floor
    You can also add other stuff to it as well if I can figure out how to port the 6 button.
     
  7. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    That would be interesting.
     
  8. TheUltimateKoopa

    TheUltimateKoopa Newcomer Member

    Joined:
    Sep 12, 2008
    Messages:
    18
    Location:
    Oxted, Surrey, England
    How comes it has like 8 acts of Emerald Hill Zone?
     
  9. Centurey

    Centurey Well-Known Member Member

    Joined:
    Aug 28, 2008
    Messages:
    114
    Location:
    New York
    It is because of the level slots. All empty ones that have no name go to EHZ, as far as I know.
     
Thread Status:
Not open for further replies.