I'm trying to make an incremental upgrade menu. where you buy upgrades once and they will dissappear after.
The further the player gets the more upgrades they unlock. So I wanted to fill an array with the upgrade variables (name, effect, cost etc) and create the buttons for the upgrades from each X value that isn't 0. I always have trouble with arrays and can't even seem to assign the right instance variable to the button. So all help is greatly appreciated.
it currently does create the buttons. all be it in the same spot. but it doesnt assign the values at all.
heres what I got