Change Sonic's palette during the game

Discussion in 'Discussion and Q&A Archive' started by Selbi, Jun 27, 2009.

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

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Let's say, I'm destroying a monitor which changes Sonic's palette to red. When I do something like a Spindash now he should return to his normal palette. I made the palette files but I have ABSOLUTLY no idea how to do this. Helpz?
     
    Last edited by a moderator: Jun 27, 2009
  2. Irixion

    Irixion Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    670
    Location:
    Ontario, Canada
    Just go to the 'action' you want him to change his palette at, and then add the line to change his palette....so pal1 for original, pal2 for edited, and then revert when he's done.
     
  3. Armada

    Armada DID SOMEONE SAY WEEABOO? Member

    Joined:
    Aug 17, 2007
    Messages:
    98
    In any of the actions you want to change the palette back to normal, use these lines:



    moveq #3,d0 ; load Sonic's pallet
    bsr.w PalLoad1



    The palette you want to change you needs to be added to the palette pointer list found under PalPointers and in "Pallet pointers.asm"
     
    Last edited by a moderator: Jun 27, 2009
Thread Status:
Not open for further replies.