damage on landing

imaninja1991

New member
Hello, it's been a few years since I've used this engine and I had to restart on an old project due to my old computer breaking. I'm trying to do something very simple but for some reason i'm having problems with it. I'm trying to make it so that when my enemies fall, they are able to hit other enemies and knock them down. Had no problem doing this in the past and forgot. Here's how I have my enemies fall set up, yet when they fall they don't knock down other enemies they make contact with.

anim fall
attack 60 124 65 68 7 1 0 0 20 10
bbox 55 121 64 60
landframe 1
loop 0
offset 90 192
delay 999
dropv 3 3 0
damageonlanding 10 1
sound data/chars/rat/fall.wav
frame data/chars/rat/fall1.gif
bbox 68 153 52 52
delay 40
frame data/chars/rat/fall4.gif

Did I set it up wrong?
 
Read here

projectilehit {type1} {type2} ...

~Optional.
~Do not let the name confuse you, this is not for projectiles. This
setting specifies what types this entity will hit when thrown from a grab. *~Available types are enemy, player, npc, obstacle, shot and you can use as many as you need. If you don't want entity to hit anything, just set 'none' here.

~Be aware if you use this setting, you must provide all types you wish this entity to be able to hit when thrown. That is to say, an enemy with ‘projectilehit player’ will only hit players when thrown, not other enemies.
 
Welcome back, imaninja :)

For damageonlanding, dropv and also other attack modifiers, you have to declare them right after attackbox like this:

Code:
   bbox   55 121 64 60
   landframe   1
   loop   0
   offset   90 192
   delay   999
   attack   60 124 65 68 7 1 0 0 20 10
   dropv   3 3 0
   damageonlanding   10 1

HTH
 
Back
Top Bottom