Spawn massage one time

nir3112nir3112 Member, PRO Posts: 312
In my game when the player finish mission or move up a level there is massage spawn to the screen, the problem is when I play again, all the massages spawned again.
How do I fix it to pop just one time?
When you move up a level or finish mission.
Thanks in advance.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited November 2013
    Add a Boolean Attribute, start it as False and make it True once the message has been displayed.

    In your rule that checks to see if the message should be displayed, add a Condition that checks to make sure this new Boolean is False.

    So that way, once the message is displayed, the Boolean will be changed to True and the message will not display again.
  • nir3112nir3112 Member, PRO Posts: 312
    Add a Boolean Attribute, start it as False and make it True once the message has been displayed.

    In your rule that checks to see if the message should be displayed, add a Condition that checks to make sure this new Boolean is False.

    So that way, once the message is displayed, the Boolean will be changed to True and the message will not display again.
    Thanks for your fast answer!
    look it work like that
    In my game i made missions that count to 0 when the mission is 0 some boolean changed to true and the massage will appear on the screen.
    When the player died the missions table save all the missions
    but when i play again the boolean is false and all massages are spawning again.
    How do i fix it?
Sign In or Register to comment.