Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ShingleBells |
I keep getting the above error when i try to call this function:
func gain_exp(amount):
cur_exp += int(amount)
total_exp += int(amount)
If it helps, I’m declaring and assigning the variables like this:
var total_exp
var cur_exp
func _ready():
cur_exp = 0
pass