The title is not completely clear due charactere limitation, but what I want to do is:
I will add lets say, 5 solid sprites, that are like walls, to my top down shooter, they will create some kind of barriers as game progresses making the player's dodging and movement limited.
They will begin invisible and will become visible as the score increases. That I know how to do.
But I want that, at each play, as the game has only one level, the order is randomized.
So I was thinking about this:
If score > X, set choose(wall1,wall2,wall3,wall4,wall5) visible
This first part I get. But when it comes to setting the rest visible, when the first was random, is the problem. Should I create all possibilities independently? Like:
If score > X² and wall1 is visible, set choose(wall2,wall3,wall4,wall5) visible
If score > X² and wall2 is visible, set choose(wall1,wall3,wall4,wall5) visible
And so on. And what is worse, is that I should all variables for each instance depending how many walls are up. For example:
If score > X³ and wall1 and wall2 are visible, set choose(wall3,wall4,wall5) visible
If score > X³ and wall1and wall3 are visible, set choose(wall2,wall4,wall5) visible
So you can see how a pain that would be.
What I wonder is if there is some easier way to do that.