W
Wild_West
Guest
Okay I was hoping I could get some extra minds to help me with the concept for this setup.
I've started adding additional levels to my game and all is going well, moving from place to place like it should, but for my actual system to unlock new levels to play through, I've run myself into a corner.
I have it et to where the player has to find 3 blocks in each level and set them to a certain color then press enter and he'll be rewarded with a treasure.
The treasure gets stored in a treasure collection array and if you exit the stage with said treasure in hand you unlock the next stage, and keep going through all 6 until you can move to the next world, and play IT'S levels.
So that's all easy enough, but what I now need is a way to clear out the treasures you have upon completing the 6th stage of any world, so you can start collecting the treasures from the next world's stages, but I also need a way to make sure the PREVIOUS world's treasures can't just be recollected and carried over to the next world.
With the exception of the map select, shop, pause and stage select rooms, all my other rooms are set to be persistent upon entering and not persistent upon reaching the goal so they can be played over, which is where my issue of recollecting old treasure comes in.
Any thoughts on how I can keep the blocks from re-spawning treasure once they've been obtained already in any one room?
I've started adding additional levels to my game and all is going well, moving from place to place like it should, but for my actual system to unlock new levels to play through, I've run myself into a corner.
I have it et to where the player has to find 3 blocks in each level and set them to a certain color then press enter and he'll be rewarded with a treasure.
The treasure gets stored in a treasure collection array and if you exit the stage with said treasure in hand you unlock the next stage, and keep going through all 6 until you can move to the next world, and play IT'S levels.
So that's all easy enough, but what I now need is a way to clear out the treasures you have upon completing the 6th stage of any world, so you can start collecting the treasures from the next world's stages, but I also need a way to make sure the PREVIOUS world's treasures can't just be recollected and carried over to the next world.
With the exception of the map select, shop, pause and stage select rooms, all my other rooms are set to be persistent upon entering and not persistent upon reaching the goal so they can be played over, which is where my issue of recollecting old treasure comes in.
Any thoughts on how I can keep the blocks from re-spawning treasure once they've been obtained already in any one room?