Question about structuring tshirt's coverflow template lock/unlock

anithmukanithmuk Member Posts: 235
edited November -1 in Working with GS (Mac)
So basically, I have two sets of coverflow level selection. The first is a "world select" thats lets you scroll through 5 different worlds and pick one. You then get taken to the "level select" where you can scroll through and play one of the 10 levels in the world you picked. Also, in each level there is a special pick-up.

What I want is that when you complete a level the next level is unlocked (easy enough), but to unlock the next world you need to obtain at least 7 from the 10 pickups in the previous world. I haven't had much time to experiment with this so I was hoping someone could suggest an easy and efficient way to achieve it.

Thanks.

Comments

  • ScootsScoots Member Posts: 507
    Just thinking out loud I would think you need attributes for the pickups and the worlds. So each time I pick up an item have it change attribute pickup.item to pickup.item +1 then for world 2 have if pickup.item is >7 change world2.unlock to true. something along those lines but a more seasoned fellow will way in soon. ;-)
  • anithmukanithmuk Member Posts: 235
    That sounds good Scoots, thanks. I'm sure it is simple enough to achieve and I'm just over complicating it in my head :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You may want to do boolean's also for each level pickup. other wise you could go back through the same level 7 times to unlock the next world something like

    if overlap with actor pickup
    and game.W1Level1pickup is false
    --Change attribute game.w1pickups to game.w1pickups+1
    --interpolate game.w1Level1Pickup to true , duration 0.1
  • anithmukanithmuk Member Posts: 235
    Thanks for the tip
Sign In or Register to comment.