Total stars collected help

MOVProductionsMOVProductions Member Posts: 53
edited November -1 in Working with GS (Mac)
I want to have an actor that shows the amount of stars collected in the level selection menu like cut the rope and I tried adding one star to the integer attribute total stars collected but if you complete the level and if you go back and get the same amount of stars again say 3 both times its a total of 6 stars that appears. I don't want it to appear like that
Thanks

Comments

  • hotMagichotMagic Member, PRO Posts: 266
    I have a start system in my game which tracks a lot of that type of stuff. I really need to template it cause it was a horrible thing to make.

    I have a variable called progression that tracks if a level is locked, unlocked, star1, start2, star3.
    I have that for every single level.
    When the game starts, it loads up all those guys into their respective variables.

    I track a CurrentLevel Progression that is just one variable that counts stars for the current level.
    At level end, I compare is CurrentProgression>1-01Progression (for example). And if it's greater, then i do 1-01Progression=Current Progression.

    If not, I keep the current high. Same for score.
  • MOVProductionsMOVProductions Member Posts: 53
    Im going to try doing it with the high score like you said everything else was kind of confusing. Ha
  • MOVProductionsMOVProductions Member Posts: 53
    Yah that did not really work out
  • MOVProductionsMOVProductions Member Posts: 53
    Okay I got it fixed I read what you said a few times and got my issue fixed thanks a lot
  • hotMagichotMagic Member, PRO Posts: 266
    Good. It's one of the more work-heavy aspects of GS until arrays come. But the 4-5 hours you spend making all those variables is better than the bugs youd find in a pure syntax engine. (shrugs)
Sign In or Register to comment.