-
Beta Was this translation helpful? Give feedback.
Answered by
maron5466
Jun 4, 2024
Replies: 2 comments 8 replies
-
Actually this looks like the right way to do it. TextInput event will always return a string, but you should be able to convert it to a float just like you tried to. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much, I finally solved the problem: the problem was that elif was not complete. Now it is elif {sommaprestito} == 0: and everything works. Still, there is something I do not understand. Whatever I do, Godot refuses to let me change the global.nave1.gold. It recognizes its value (global is the name of a singleton I am using), but it refuses to change it, even if I tried set {global.nave1.gold} += {sommaprestito}. Is there something I am missing in Dialogic 2 and the use of singleton variables?