Weapon Cool Down Timer (SOLVED)

tbizzle

Well-known member
I have a weapon that needs a cool down timer. After three shots I would like it to cool down for 2 seconds. Any help is much appreciated!
 

tbizzle

Well-known member
Figured it out!

Step 1: Made an Object Variable called: coolDown

Step 2: Put this code at the beginning of my projectile script:

Code:
    LDA coolDown
    BEQ +actuallyHurt1
    JMP canNotShoot111
+actuallyHurt1:

Step 3: Put this bit of code in right before "DestroyObject" in the hurt monster script:

Code:
LDA #$40
STA coolDown
 
Top Bottom