Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Noob_Maker | |
Old Version | Published before Godot 3 was released. |
I am looking for a way to increase (and decrease) values in a variable.
For instance, I have a variable and I want to have the variable to fluctuate in it’s values to cause different things inside a script. Because of that I will have its initial value as0
. When one thing happens, I want to add the varuable’s value from a 0
to a 1
or another integer that I would like. And vice versa; subtracting the value of the variable from a 1
to a 0
or from a 0
to a -1
.
If anyone know how, I would deeply appreciate it.