So essentially I have a total of 16 power ups available, with 3 slots available to the player to equip them, so the player can have 3 power-ups equipped at one time.
Issues:
1) the power-up images that the player interacts with (drag and drop into equipped section) needs to then correlate to the power-up events themselves (this seems rather straight forward; just have it set a variable to true when it is slotted; if said variable is slotted then allow player to activate/deactivate the power ups when _ button pressed.)
2)the power-up images need to be able to be dragged and dropped into the "equipped" slots, when one is slotted it needs to set the previously equipped to "unslotted/unequipped" allowing the player to swap power-ups in and out
I have shot in the dark on this one and approached from a few angles in my head;
my first thought was to have variables that trigger on and off when the player selects a power-up, though i am having trouble imagining how to get this to work; my thought was to have three variables represent the 3 different slots, when a power-up is dragged and dropped into slot2 it sets slot2 on that power-up to true and slot2 to false on all other power-ups, theoretically i think this would work but am not sure if this is the best way to approach this.
another thought i had was using an array, i am not exactly sure how i would use an array to accomplish this though. (to that extent i have very little experience using arrays other than the tutorial videos i have found online). I understand that I could store each power-up in the array but am unsure how to get the array to coincide with the power ups being equipped and furthermore activated.
truthfully i am just having trouble imagining what the code would be on this one and would greatly appreciate some help, thank you for you time and patience.