openbor icon indicating copy to clipboard operation
openbor copied to clipboard

Bindentity vs Hitwall animation

Open dbaldan opened this issue 6 years ago • 2 comments

Description

If you use bindentity() to bind an entity (a) over another (b), when (b) hits a wall and has the "HITWALL" animation (which triggers itself instantly when the entity hits a wall if it's on a fall animation), the (a) won't be killed even if you use the bindanimation as 4 (Kill the entity if the animation doesn't match).

Debugging

Reproduce

  1. Add the animation HITWALL to an entity
  2. Add and animation where you will have a binded entity, like a BURN animation with fire sprites binded to it.
  3. Knocks that entity against a wall using an attack wich will trigger that animation (like BURN).

It would be a little hard to reproduce if you don't have a mod which uses bindentity and has hitwall animation. I can provide a beta testing version of my module

Expected behavior

Since we are using "Kill the entity if the animation doesn't match", the (b) entity should be killed instantly, because it doesn't have a HITWALL animation.

Version

  • Windows and Android
  • 4432 and 6630

dbaldan avatar Apr 01 '19 17:04 dbaldan

@dbaldan I'd like to see that beta test module please. I don't have HITWALL and it would be pretty tedious to set up a test.

DCurrent avatar Dec 03 '20 18:12 DCurrent

@DCurrent I will send you.

dbaldan avatar Dec 03 '20 18:12 dbaldan