|Attention||Topic was automatically imported from the old Question2Answer platform.|
Im using a textureprogress as a hp bar, but i have a problem.
The code is like:
max_value = hp value = actual_life
(hp and actual_life are numbers)
when i try to run the proyect the debug say: Invalid get index “max_value” (on base “texturepogress”) with value of typi “Nil”.
and i dont know what means
what is “Nil”?
What node is the above script associated with? Can you show more of the code, as well as a screenshot of the scene tree indicating the node containing the above code?
jgodfrey | 2022-08-13 16:55
I don’t know how to put a image here lol
I use a tutorial of candy crush to make my code, the code is in the script of textureprogress
KiraArts | 2022-08-15 20:40
It’s difficult to assist without having more information. At least post the offending script in its entirety (and, please, format it for the forum).
jgodfrey | 2022-08-15 20:50