Hi there!
How could I go about creating a generic Damageable family?
For instance, both a wooden crate and enemies are damageable, but they react differently to being hit with a weapon.
The crate emits a "broken" sound effect, plays a break animation, destroys after its animation has finished and then drops loot.
Enemies do one thing if they're damaged and then another if they're destroyed.
Right now I have a Damageable family that gives a family member the "Health" instance var.
When the player hits a Damageable family member, I run a function called TakeDamage(UID, damageAmount)
I'd like for similiar objects to share basic functionality but implement their own events specific to they're behavior.
Construct doesn't really support any sort of virtual function overriding, so what do you all think would be a good approach to this? Or can it even be done with Construct?