FrankenGraphics
New member
a simple addition, if you need one. detracts one life for player.
step 1:
-go to the handlePlayerHurt.asm your project is using. be aware that there may several copies named the same for different modules.
add this to the very top of the document
save.
step 2:
make a new text document.
paste the following
save as myHurtTile.asm or whatever you'd like it to be named in an appropriate place.
Link up the new .asm file in script settings to a tile ID you want it to be.
Hurt tile properties:
-only hurts player
-player will recoil
-only detracts one life per hit/recoil period (checking object_timer_0,x guarantees this every time).
step 1:
-go to the handlePlayerHurt.asm your project is using. be aware that there may several copies named the same for different modules.
add this to the very top of the document
Code:
hurtPlayer:
save.
step 2:
make a new text document.
paste the following
Code:
cpx player1_object
bne +
lda Object_timer_0,x
bne +
jsr hurtPlayer
+
save as myHurtTile.asm or whatever you'd like it to be named in an appropriate place.
Link up the new .asm file in script settings to a tile ID you want it to be.
Hurt tile properties:
-only hurts player
-player will recoil
-only detracts one life per hit/recoil period (checking object_timer_0,x guarantees this every time).