Open BojanStankovic opened 7 years ago
With a help of @BojanStankovic and Thomas I manage to add the dying animation before the ant is being deleted.
This solution only works if the animation will be finished before we highlight another Ant
Edit by Bojan:
This bug was reported at 77
The reference to issue 77 was put here due to a miscommunication. Issues are not linked
This issue is now resolved/done. Just finished it now and tested myself. Current delay is set for 3 seconds and it looks right but in future this can be dependent on the digging/mining time length.
By testing the branch I noticed that the dying animation is working for the mining ability but it doesn't work for digging ability.
This has been corrected now so it's working for digging and mining. Thanks for pointing this out @BojanStankovic !
Once the ant is done with digging/mining, instead of simply removing the ant it should perform a dying animation first and sink into the ground. When the dead ant is not visible on the level anymore we should remove it completely as we are doing it now.
Alternatively, when the dying animation is finished the ant can fade out before being suddenly removed.