To display a TEXT ONLY ONCE

feromanferoman Member, PRO Posts: 130
edited November -1 in Working with GS (Mac)
in my game, There are several level and at the end of each level, there's a scene that shows my score, my highscore, stars yellow or gray.
To move to the next level, I must unlocked.

if my score is beyond the current highscore, I managed to include a message "YOU GOT THE BEST SCORE"

My problem now READ WELL
if I exceed a score (eg score 10), I display the message "level 2 IS Unlock", ok that's good, but the real problem, this message appears every time I go over the score (eg 10 ), after "try again" without leaving the game simulator in gamesald

I do not know if anyone could help me because it's complicated, I spent several hours.

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    I believe it would be :

    If the score exceeds 10 (your example) then spawn actor with a display text: Your text ( Level 2 IS Unlock)

    Im not sure if i understand correctly.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi feroman, try a boolean attribute game.BestScore, set to false. In the rule to display the text, add:

    When game.BestScore is false
    Display Text
    Change attribute game.BestScore to true

    If you need to display it later on, just change game.BestScore back to false.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yeah, what he said :)
Sign In or Register to comment.