I'm coming from a C & VB6 background and don't understand array creation and use in godot 3.0. I've read the article on moving over from static languages to dynamic languages, but it wasn't much help, and I searched for basic syntax and examples and have been coming up short.
Here's an example of what I'm trying to do.
my player has a weapon that has upgrades to it, we'll say there are 6 levels. These levels change the fire rate and the range of the weapon.
In my older languages I would create a datatype of what I wanted like
range as single
fireRate as single
Then I could declare an array using my datatype
dim myGun( 6 ) as weaponsUpgrade
then I could access what I set the various values to by:
myWeaponLevel = 2
playerShootSpeed = myGun( myWeaponLevel ).fireRate
It seems absurd to me that I have to ask for help on something as simple as creating an array, but here we are so I appreciate any help I can get.