Only spawning power ups that the player wants in that game
I have an array of 6 power ups that are spawned into my endless runner intermittently, I want to convert it so the player can choose which of those power ups are able to spawn at the start of each run (a canvas pops up where the player can press each power ups corresponding button and the ones that aren't pressed don't show up whatsoever in that run) It would be nice to keep the array but maybe have it with nothing in to start with, and then each power up that is selected can be added in. It looks like I'm going to have to do it using a list though, but I'd obviously rather do it whichever way is the most sensible way to do it. I've researched it but nothing really fits my situation so I'm unsure where to start. Any help would be much appreciated, I'm doing it in c# but even in java would push me in the right direction.
Answer by Suduckgames · Mar 07, 2017 at 10:01 AM
I am not sure if I am getting what you want, I will give it a try
Once user select the power ups, you can copy them to an static array, and then every time they spawn you can random access to the array