Marraw
February 17, 2024, 3:28pm
1
Hi! As I was requested, I moved the issue to a new thread.
The bug :
the action “change the maximum value” when dealing with a resource bar (separated units) doesn’t seem to work in the code.
When I try to modify this number in the code, it doesn’t work.
Here is my code :
image1403×112 8.39 KB
Here is the Editor of the Resource Bar :
and here is what I see in the preview :
Conclusion : the “change the value” line works but the “change the maximum value” doesn’t seem to work.
To reproduce the issue, simply create an object Resource Bar (separated units) and try to modify the maximum value through the code.
Thanks!
1 Like
Marraw
February 18, 2024, 9:32pm
2
I’m sorry to reply to my own thread but is there something I can do about that? Do you guys have the same problem?
I spoke with someone. It’s being looked into. I’m not aware of a workaround for changing the value at runtime.
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
opened 06:34PM - 17 Feb 24 UTC
⚠ Issue with an extension
### Is there an existing issue for this?
- [X] I have searched the [existing … issues](https://github.com/GDevelopApp/GDevelop-extensions/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.
![image](https://github.com/GDevelopApp/GDevelop-extensions/assets/8879811/77529808-7a1b-44af-a94a-09b3d5169aa4)
![image](https://github.com/GDevelopApp/GDevelop-extensions/assets/8879811/c4d7db8d-59dc-4912-920d-ccb2c4e6de83)
### 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
<details>
Windows 11
</details>
### Additional context
_No response_
Marraw
February 19, 2024, 12:13am
4
@Keith_1357
Many thanks for your help!
1 Like
RMDB
April 30, 2024, 1:05pm
5
Hey there,
sry to little necro.
Has this been fixed in the current ver?
Cos it looks like i’ve the same problem.
Thx
These type of resource bars are sorta easy to make, so why not make your own?
Its far more performance friendly too!
RMDB
April 30, 2024, 4:47pm
7
I’ve no problem with it.
But when you have a tool, you expect it to work.
.i can wait, make resource bar usually is not a priority
1 Like
I just tested this, and its legit broken no matter what
RMDB
April 30, 2024, 5:11pm
9
Yep, i figured it, after i spent a good hour lookin for mistakes in my whole project.
Honestly, these bars are way more trouble than their worth, just make your own.
The “Separated” resources are specially easy to make, if you want i can show you how.
RMDB
April 30, 2024, 6:43pm
11
Thx but making a bar is not a problem, i’ve already solved with a tiled sprite
1 Like
davy
May 11, 2024, 1:20pm
12
Thank you for reporting this issue. It should be fixed with the 1.1.3 release of the extension.
GDevelopApp:main
← GDevelopApp:fix-tiled-bar-max
opened 11:31AM - 11 May 24 UTC
Fixes:
- https://forum.gdevelop.io/t/bug-suspicion-resource-bar-object-separate… d-units/54832
2 Likes