0 votes

Hello world, This line of code is producing the following error:

$shit/cooldownbar.set_max_value(shitstorm)  

Error
Invalid call. Nonexistent function 'setmaxvalue' in base 'ProgressBar'.

This line works without a problem:

 $shit/cooldownbar.set_value(shitstorm)

What am I doing wrong? Is there a bug in the code?
Thanks

asked Jul 3, 2019 in Engine by Talmore (19 points)

1 Answer

+1 vote
Best answer

Set the max_value with:

$shit/cooldownbar.max_value = shitstorm

Or if you insist on calling a function:

$shit/cooldownbar.set_max(shitstorm)
answered Jul 4, 2019 by Dlean Jeans (3,917 points)
selected Jul 4, 2019 by Talmore

Thanks!
that solved my problem.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.