damoch / coast-defence-force

Game I made for Warsztat Summer of Code 2016
Other
1 stars 0 forks source link

Disapearing monsters bug #1

Closed damoch closed 8 years ago

damoch commented 8 years ago

When more than one infantry unit is atacking monster, there's risk, that one of them will try to attack no longer existing monster

damoch commented 8 years ago

That PROPABLY happens, because infantry unit triggers it's collision event in the same frame as monster gets rekt.

damoch commented 8 years ago

I think adding a conditional statement to check if target object still exists was a solution. Not sure yet. Or that might be small possibility of that bug happening.

damoch commented 8 years ago

I'm just gonna close it, lol