vulpineblaze / framework_demoes

Use this repo to demo different frameworks for 2D Game creation.
2 stars 1 forks source link

ST ship - partialHealthScript, damage misfires #26

Open vulpineblaze opened 9 years ago

vulpineblaze commented 9 years ago

Currently when passing damage up to the top level, it sometimes passes more than once (eg. 50 health, 1 hp passed per wedge destroyed. After 5 wedges destroyed, health is at 38 instead of 45; 7 extra damage got passed)

This need to be one-for-one, so that wedges can correctly destroy the top level, and so that random +/- can determine whether a broken hulk is created or the ship is completely gone.

jsmunster commented 9 years ago

Partial fix in place. Needs additional work later for proper fix.