Strange Scoring Issue

monkeedmonkeed Member Posts: 22
edited March 2012 in Working with GS (Mac)
I'm trying to get my level to spawn a level complete graphic when a certain score is reached.
The score is stored and displays fine, but I can't get the level complete graphic to spawn correctly. My score is stored as a real value because I need it to include decimals.

Example: I set the winner graphic to spawn when the score attribute = .05, but when I start the scene the level complete graphic spawns immediately.

What am I doing wrong?

Best Answer

  • UtopianGamesUtopianGames Posts: 5,692
    Accepted Answer
    To save you writing lots of rules for the score you could also make an integer scoreTarget and do if score= or >scoreTarget change attribute levelComplete=True then when you exit the scene increase the scoreTarget by 5 or whatever.

    Darren.

    GS TEMPLATES
    DBA RESOURCE CENTRE

Answers

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Do you have rules in the "otherwise" section telling it to be offscreen when it's not equal to .05?
  • OmenaboOmenabo Member Posts: 121
    Don't use spawn-Make the graphic move outside the screen when it is not used.

    Example:

    if(score == 0.05){
    graphic.positionX = 480;
    }else{
    graphic.positionX = -20;
    }
Sign In or Register to comment.