Perfect Bonus & Life every 50000 points.

Discussion in 'Discussion and Q&A Archive' started by Jimmy, Apr 20, 2008.

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

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    While it's not that hard to find the corresponding routines in Sonic 1, I think in this instance it's easier to go about things if you think logically about it for a little while. Our new variable, $FFFFFFC0, only needs to be set to 5000 when the game is starting completely afresh. Whenever this happens, all level variables will be cleared, including the score counter. An instruction to clear the score counter looks like:



    Code:
    move.l	d0,($FFFFFE26).w
    There are five of these in the Sonic 1 disassembly. Now since the score counter is being cleared, we also need to reset our extra lives counter to 5000. After each score counter clearing, add:



    Code:
    move.l	#5000,($FFFFFFC0).w
    which sets/resets the extra lives score counter to 5000. After doing this, it should work properly.
     
    Last edited by a moderator: Apr 22, 2008
  2. Jimmy

    Jimmy "GIVE HIM BREAD FIST!" Member

    Joined:
    Apr 2, 2008
    Messages:
    41
    Location:
    Slough. England
    Why didn't I think of that? Thanks shobiz!


    EDIT: Wierd, I put it in after every one, worked fine at the beginning, but when I got into act 2 & hit something it gave me a life =/ nvm, I accidently place it in 1 place where it said to update score instead of clear score. Took it out & now it works perfect. Thanks for all the help!


    EDIT 2: I know it isn't what the topic's about, but while it's open, how would I take away the points object thing that appears when you kill a badnik, so I can give Sonic's tiles more space & they don't mess with them?
     
    Last edited by a moderator: Apr 22, 2008
Thread Status:
Not open for further replies.