Help: making object 5C displaying in GHZ

Discussion in 'Discussion & Q&A' started by SonixFury, Jun 26, 2021.

  1. SonixFury

    SonixFury Still alive Member

    Joined:
    Jan 31, 2021
    Messages:
    43
    Location:
    Italy
    i need help making obj 5C showing up in ghz. i created this code snippet in _incObj/5C Pylon.asm but it doesn't show up in the level. i'm using @Clownacy sonic 1 AS disassembly. any help?

    Code:
    Pyl_Main:    ; Routine 0
            addq.b    #2,obRoutine(a0)
            move.l    #Map_Pylon,obMap(a0)
            move.w    #$83CC,obGfx(a0)
            move.b    #$10,obActWid(a0)
            move.w #$83CC,2(a0) ; set offest for SLZ
            tst.b ($FFFFFE10).w ; is level GHZ?
            bne.s Obj5C_NotGHZ ; if not, branch
            move.w #$8555,2(a0) ; set offset for GHZ
    
    Obj5C_NotGHZ:
            rts      
    Thanks. ;)
     
    SuperSayian Zrise likes this.
  2. SuperSayian Zrise

    SuperSayian Zrise Well-Known Member Member

    Joined:
    May 10, 2021
    Messages:
    60
    Can't you use the pattern load cues asm?
     
  3. SonixFury

    SonixFury Still alive Member

    Joined:
    Jan 31, 2021
    Messages:
    43
    Location:
    Italy
    I tried using it but it didn't showed up in the level
     
  4. Stdh

    Stdh Newcomer Member

    Joined:
    Jan 11, 2021
    Messages:
    16
    Location:
    the netherlands
    Have you even placed it in sonlvl?
     
  5. SonixFury

    SonixFury Still alive Member

    Joined:
    Jan 31, 2021
    Messages:
    43
    Location:
    Italy
    No how i can do it?
     
  6. Giovanni

    Giovanni It's Joevanni, not Geovanni. Member

    Joined:
    Apr 16, 2015
    Messages:
    219
    Location:
    Italy
    Not on my PC right now, but the easiest way that comes into mind is placing any object and changing the object type from the menu on the right when the object is selected.
     
    SuperSayian Zrise likes this.