!!!! Where can I place unlock actor? !!!!

Benjamin_m5Benjamin_m5 Member Posts: 646
edited November -1 in Working with GS (Mac)
Hey there everyone

I have a game with 15 levels. now i want that when level 1 is completed that it unlocks level 2. ( Attribute when it overlaps with actor change attribute level to +1 )
But where must i place the unlock actor that i adds +1 to level attribute only at the first time?

My problem is that when i make to times level 1 it ulocks level 3 too.

Hope you can understand

Cheers

Comments

  • rlehmrlehm Member Posts: 320
    If level unlock is < current level

    Change attribute level to level+1
  • LoadingZeroLoadingZero Member Posts: 75
    Yes but you must increment level only if you've not complete this level.
    I've introduce anoter attribute, bool, that i set to true if i complete my level and before incrementing level i check if complete is true.
  • rlehmrlehm Member Posts: 320
    zero said:
    Yes but you must increment level only if you've not complete this level

    If level unlock is < current level
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Can't understand...sorry :-S

    Can you explain it better with more details?
  • rlehmrlehm Member Posts: 320
    You can put a check in place. Only raise the level unlock number if the current level is less than the already unlocked level.

    Example: game attribute levelon

    On each scene, somewhere:
    Change attribute game.levelon to (put number of level here)

    Then in your scene complete actor add

    If game.unlock < game.levelon
    Change attribute game.level on to game.level on+1

    Something like that. There's many ways to do it.
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Thanks much.

    Now I understand :)
Sign In or Register to comment.