Help with Levels Unlocking

cbowers428cbowers428 Member Posts: 176
edited November -1 in Working with GS (Mac)
Hey I'm making a platformer and I figured out how to make lockable levels. However, after I finish the first level and return back into it, my "level unlock" attribute continues to remain true and keeps unlocking levels and returning me to the level selection scene. Basically every time I enter level 1 it keeps repeating my guy finishing the 1st level and adding to the "levels done" attribute. How can I fix this?

Comments

  • diegocsdiegocs Member Posts: 531
    maybe do an attribute (for level 1) attribute "level done" is true, change "attribute levels" done to 2. and for level 2 the same thing but instead of changing levels done to 2 changes it to 3. You should do this instead of what your doing which is probably: when attribute finished is true change attribute levels done to levels done+1. Do you get what i'm saying?
  • cbowers428cbowers428 Member Posts: 176
    yea so should i do like a save attribute on the actor which ends the level?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi cbowers428; it'd probably be "cleaner" to put the Save attribute just before you go to the next scene. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • cbowers428cbowers428 Member Posts: 176
    i looked at the demo called "Level Unlock Demo" and thats exactly what I want but it just doesnt work even when i copied it perfectly, im lost
  • cbowers428cbowers428 Member Posts: 176
    nvm i got it!
Sign In or Register to comment.