jump on hurts for 4.5.6

Post Reply
User avatar
Logana
Posts: 426
Joined: Mon Nov 18, 2019 10:14 pm

jump on hurts for 4.5.6

Post by Logana » Mon Aug 10, 2020 1:25 pm

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
I’m currently working on platycat viewtopic.php?f=52&t=5848
A fun platform game also Monster Slayer witch is the bigger prodject viewtopic.php?f=52&t=6010
User avatar
Logana
Posts: 426
Joined: Mon Nov 18, 2019 10:14 pm

Re: jump on hurts for 4.5.6

Post by Logana » Mon Aug 10, 2020 4:18 pm

wait im dumb its already pr builtin
I’m currently working on platycat viewtopic.php?f=52&t=5848
A fun platform game also Monster Slayer witch is the bigger prodject viewtopic.php?f=52&t=6010
WillElm
Posts: 116
Joined: Wed Mar 20, 2019 3:56 am

Re: jump on hurts for 4.5.6

Post by WillElm » Mon Aug 10, 2020 4:37 pm

Logana wrote:
Mon Aug 10, 2020 4:18 pm
wait im dumb its already pr builtin
Whoa, that's awesome! So, it's not just jump on kills?
User avatar
Logana
Posts: 426
Joined: Mon Nov 18, 2019 10:14 pm

Re: jump on hurts for 4.5.6

Post by Logana » Mon Aug 10, 2020 4:53 pm

I haven’t checked I’ll do that now
I’m currently working on platycat viewtopic.php?f=52&t=5848
A fun platform game also Monster Slayer witch is the bigger prodject viewtopic.php?f=52&t=6010
User avatar
Logana
Posts: 426
Joined: Mon Nov 18, 2019 10:14 pm

Re: jump on hurts for 4.5.6

Post by Logana » Mon Aug 10, 2020 4:55 pm

No it’s just jump on kills
I’m currently working on platycat viewtopic.php?f=52&t=5848
A fun platform game also Monster Slayer witch is the bigger prodject viewtopic.php?f=52&t=6010
User avatar
Logana
Posts: 426
Joined: Mon Nov 18, 2019 10:14 pm

Re: jump on hurts for 4.5.6

Post by Logana » Mon Aug 10, 2020 4:55 pm

But I can still make an interest boss outa that since my player is one hit death
I’m currently working on platycat viewtopic.php?f=52&t=5848
A fun platform game also Monster Slayer witch is the bigger prodject viewtopic.php?f=52&t=6010
WillElm
Posts: 116
Joined: Wed Mar 20, 2019 3:56 am

Re: jump on hurts for 4.5.6

Post by WillElm » Sat Aug 15, 2020 5:13 am

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: Select all

    ;;;;;;;;;;;;;;;;;; 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
Post Reply