#I am not able to add 1 to the index of the element in the an Array

1 messages · Page 1 of 1 (latest)

digital parcel
#

I am trying to change the index of the array to instantiate a projectile in line 22 current_weapon_index += 1 does not work when I run the scene
any ideas how to fix this ?

undone frost
#

Have you print the value while running?

tranquil smelt
#

Adding 1 will work fine, but you'll need to fetch the value again

#

You're only getting the value once in ready, so it won't change when you change the index