Problems with GHZ3 boss

Discussion in 'Discussion and Q&A Archive' started by JackyFarron, Mar 19, 2009.

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

    JackyFarron Ah, it suits you! Member

    Joined:
    Mar 19, 2009
    Messages:
    27
    Location:
    $10000
    Hello!


    It does a pair of days that I have a problem related to Sonic 1... And it is the following one.


    I've tried to extend the length of GHZ3, and have achieved it.


    Nevertheless, there is something that doesn't move to the perfection: The boss.


    In my disassembly I have put this in Resize_GHZ3boss:



    Resize_GHZ3boss:
    cmpi.w #$960,($FFFFF700).w


    bcc.s loc_6EB0


    subq.b #2,($FFFFF742).w


    loc_6EB0:


    cmpi.w #$3560,($FFFFF700).w


    bcs.s locret_6EE8


    bsr.w SingleObjLoad


    bne.s loc_6ED0


    move.b #$3D,0(a1) ; load GHZ boss object


    move.w #$3660,8(a1)


    move.w #$280,$C(a1)


    loc_6ED0:


    move.w #$8C,d0


    bsr.w PlaySound ; play boss music


    move.b #1,($FFFFF7AA).w ; lock screen


    addq.b #2,($FFFFF742).w


    moveq #$11,d0


    bra.w LoadPLC ; load boss patterns



    Nevertheless, the boss goes to his original position...


    I have tried everything but it has been in vain.


    Might anybody to say to me what is what I do bad? Is there anything more that it should do?


    Thank you very much in advance.
     
  2. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Obj3D contains positions that you need to change yourself, an alternative would be to use relative positioning, then you can add the boss object like an ordinary one in SonED2.
     
  3. JackyFarron

    JackyFarron Ah, it suits you! Member

    Joined:
    Mar 19, 2009
    Messages:
    27
    Location:
    $10000
    What line exactly? I have looked for all sides and I don't see anything...
     
  4. Alriightyman

    Alriightyman I'm back! Member

    Joined:
    Oct 3, 2007
    Messages:
    156
    Location:
    USA
    $30(ax) and $38(ax) are what you are looking for. For that boss, 8(ax) is copied to $30(ax) and $C(ax) is copied to $38(ax); (ax) is (a0), (a1), ect.


    Edit: I think the labels you are looking for are the following. But there may be others.



    Code:
    ObjE0_ShipMove


    Code:
    ObjE0_MakeBall


    Code:
    ObjE0_ShipStart
     
    Last edited by a moderator: Mar 20, 2009
  5. JackyFarron

    JackyFarron Ah, it suits you! Member

    Joined:
    Mar 19, 2009
    Messages:
    27
    Location:
    $10000
    I've found the above mentioned lines, but: is it to change from 8 to $30 or the other way round?


    Sorry for the ignorance, but the fact is that I don't find out very well...
     
  6. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    No no, dont touch $30 or $38, the boss code already copies the x position to $30 and y position to $38 so edit some values around. For example:



    Code:
    move.w  #$2960,$30(a0); set the boss to load at position $2960 at x-axis

    $2960 is the value you are looking for, change it to the x position needed. Same as y position lines.
     
    Last edited by a moderator: Mar 21, 2009
  7. JackyFarron

    JackyFarron Ah, it suits you! Member

    Joined:
    Mar 19, 2009
    Messages:
    27
    Location:
    $10000
     
    Last edited by a moderator: Mar 21, 2009
  8. Alriightyman

    Alriightyman I'm back! Member

    Joined:
    Oct 3, 2007
    Messages:
    156
    Location:
    USA
     
  9. JackyFarron

    JackyFarron Ah, it suits you! Member

    Joined:
    Mar 19, 2009
    Messages:
    27
    Location:
    $10000
    To the end my problem has been solved. The boss moves perfectly in the position that I was wishing. Thank you!
     
Thread Status:
Not open for further replies.