![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | CardboardPow |
I am creating a FPS game, for the gui I have a text label that tells the player how much ammo they have left.
func _process(_delta):
if reloading:
ammo_label.text = ("Reloading...")
else:
ammo_label.text = (str(current_ammo) + " / " + str(clip_size))
I tried multiple things such as using a placeholder. when ever I run it I get the error that says
Invalid set index ‘text’ (on base: ‘String’) with value of type ‘String’.
I am at a loss of what I am supposed to try next so I figured that someone else might have ran into a similar problem.