Normal Sonic uses also Super Sonic art?

Discussion in 'Discussion and Q&A Archive' started by DeoxysKyogre, Apr 4, 2010.

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

    DeoxysKyogre No idea what to put here .-. Member

    Joined:
    Jan 31, 2009
    Messages:
    298
    Okay, i was messing around with Super Sonic coding made by myself. I was trying to get Sonic load new art when it's at Super Sonic mode. The code:



    Code:
    tst.w   ($FFFFFE19).w
    
    			   bne.s	SonicArt	 &#59; if not,load Sonic"s art
    
    			   move.l	#Art_SSonic,d6
    
    			   bra.s	SPLC_ReadEntry	&#59; branch to rest of code
    
    SonicArt:
    
    		move.l	#Art_Sonic,d6
    But, when i tested the code in the hack i'm working on with a friend, Sonic always uses Super Sonic's art, even when it's in normal mode. Can anyone explain me what's wrong with it? Thanks for advance if you find the problem!


    EDIT: Thanks Selbi to see the problem, i changed tst.w to tst.b and it worked!
     
    Last edited by a moderator: Apr 4, 2010
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Are you sure the flag ($FFFFFE19).w is being set as a word whereever you are activating super Sonic? If you have it as a byte, that would explain your problem.


    EDIT: The thing Hanoch said below is more likley to be the problem.
     
    Last edited by a moderator: Apr 13, 2010
  3. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    Also change it to beq.s, because you test if that flag is non-zero (not set, which means not super sonic) that is why it loads only sonic's art.
     
Thread Status:
Not open for further replies.