Special Stage Monitor?

Discussion in 'Discussion and Q&A Archive' started by DarkLeach, Jan 25, 2012.

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

    DarkLeach Well-Known Member Member

    Joined:
    Jul 3, 2011
    Messages:
    193
    Location:
    In the middle of desert heat
    Now that I have a Boost Code, I have no need for a Speed Shoe, Invincibility (Boost screws up the effect of this one), or a shield monitor. So I had an idea (That many others have probably had as well) I want to make the Invincibility Monitor and make it send you into the Special Stage (Kind of like the Lampost in Sonic 2, but with a Monitor instead) I already knew I couldn't get farther than this, because a lot of the Big Ring Code doesn't make to sense to me, so I would like some help here.



    Code:
    
    Obj2E_ChkSpecialStage:
    
      cmpi.b #5,d0  ; does monitor contain a chaos emerald
    
      bne.s Obj2E_ChkRings
    
      cmpi.b #6,($FFFFFE57).w ; do you have 6 emeralds?
    
      beq.w Obj2E_DoNothing ; if yes, branch
    
      cmpi.w #50,($FFFFFE20).w ; do you have at least 50 rings?
    
      bcc.s Obj2E_GoIntoSpecialStage ; if yes, branch
    
      move.w  #$A6,d0								; Move A6 to d0
    
      jmp	(PlaySound).l			 ; Play death by spike sound
    
    
    
    Obj2E_GoIntoSpecialStage
    
      ;Put in code here to access special stage and make this spot a checkpoint to return to afterwards.
    
      rts
    
    
    
    Obj2E_DoNothing
    
      move.w  #$A6,d0								; Move A6 to d0
    
      jmp	(PlaySound).l			 ; Play death by spike sound
    
      rts
    
    ;------------------------------------
    
    ;This Code is now defunct as of boost
    
    ;------------------------------------
    
      move.b #1,($FFFFFE2D).w ; make Sonic invincible
    
      move.w #$4B0,($FFFFD032).w ; time limit for the power-up
    
    ...
    
    

    Any help would be GREATLY appreciated! :(

    [/CODE]
     
    Last edited by a moderator: Jan 25, 2012
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Have you tried changing the screen mode to $10?
     
  3. Ravenfreak

    Ravenfreak Still hacking the 8-bit titles Member

    Joined:
    Feb 10, 2010
    Messages:
    410
    Location:
    O'Fallon, MO
    The Giant Ring object only sets a flag, and the Has Passed routine checks to see if that said flag was set, then it sets the game to the Special Stage after the score tally is done. Basically what i'm saying is you don't exactly have to understand the giant ring code to make a SS monitor, but just set the game mode to $10, like Selbi stated. What exactly don't you understand about the giant ring object if you don't mind me asking? I'm just curious myself. :V
     
  4. DarkLeach

    DarkLeach Well-Known Member Member

    Joined:
    Jul 3, 2011
    Messages:
    193
    Location:
    In the middle of desert heat
    It just looked unreadable to my eyes because it had no comments, I didn't know I only had to set the Screen Mode to $10, I'll try that, now I just have to make the box act as a checkpoint to return to afterwards.
     
Thread Status:
Not open for further replies.