jump on hurts for 4.5.6

Logana

Well-known member
is there anyone who has made a jump on hurts for the platform module in 4.5.6 i just wanted to know so i could have a boss idea i thought of form my game
 

WillElm

New member
This is actually an easy change to make. Just go to the Handle Player Hurt script and comment or delete destroyObject and add the JSR like below. Now I'm trying to figure out where to put the vulnerability bit check for it.

Code:
    ;;;;;;;;;;;;;;;;;; Presumes there is a variable called myLives defined in user variables.
    ;;;;;;;;;;;;;;;;;; You could also create your own variable for this.

    LDA gameHandler
    AND #%10000000
    BEQ +canHurtPlayer
        JMP +skipHurt
+canHurtPlayer:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;; is the monster below our feet?
    ;;;;;;;;;; and are we moving downward?
    
    

    
    LDA Object_v_speed_hi,x
    BEQ +doHurtPlayer ;; equal to zero
    BMI +doHurtPlayer ;; or negative
     ;; here we are moving downward.  
     
    TXA
    PHA
    

            
        LDX otherObject
        ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Put jump on stuff here
        ;     DestroyObject
         JSR doHandleHurtMonster
    PLA
    TAX

     ;; Do a hop
     LDA #$FC
     STA Object_v_speed_hi,x
 
Top Bottom