GDevelop-extensions
GDevelop-extensions copied to clipboard
[TiledUnitsBar] Empty units are not displayed correctly after increasing the MaxValue in an event
Is there an existing issue for this?
- [X] I have searched the existing issues
Enter the name of the extension
TiledUnitsBar
Describe the bug of the extension
Empty units are not displayed correctly after increasing the MaxValue in an event.
Steps to reproduce
- Create a heart unit bar object and place an instance on the scene
- Create an event to increase the MaxValue to 5 (default is 3)
- Preview the game, and notice 3 full hearts are showing and 0 empty hearts (there should be 2)
I did confirm that the MaxValue is changed, because I cannot increase the value above the new MaxValue. The issue has something to do with drawing the unfilled hearts.
GDevelop platform
Desktop
GDevelop version
5.3.189
Platform info
Windows 11
Additional context
No response