Hi,
i am doing a spaceblaster game and dont know how to code correct interact different upgrades.
I have 2 Upgrades for the Laser. First upgrade changes the Lasersprite and some instancevariables like dmg and energyconsumption. The Second upgrade Changes the amount oh how many lasergungs ur ship has. picture for get better idea:
Here is my code for finding which Lasertype to spawn
I do this for 4 lasertypes by "Lasertype = 0" to "Lasertype = 3". Now i want to implement 8 upgrades for the number of laserguns (spawn more of the right Laser on different angle) and have to check a variable for the amount and one for the Type.
Question: Do i realy have to create 4 x 8 = 32 Events for that idea? i learned abeot arrays while searching for an idea, but dont get how i could use it for this situation.
Thanks for your time!
Her is my .capx
h*t*t*p*s://drive.google.com/file/d/0Bx3WDFOpgBMAT05QTnFzN1BmVW8/edit?usp=sharing