GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

[TiledUnitsBar] Empty units are not displayed correctly after increasing the MaxValue in an event

Open tristanbob opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

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.

image

image

Steps to reproduce

  1. Create a heart unit bar object and place an instance on the scene
  2. Create an event to increase the MaxValue to 5 (default is 3)
  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

tristanbob avatar Feb 17 '24 18:02 tristanbob