0

Check variables (if/else)

Hello,

I'm trying to develope a game with brightsign:

On a picture are 30 errors that the player has to find over touchscreen. Each error has a variable. If he found a error, the variable will be filled with a "O". Each O is one point for the player (maximum 30 points). By filling the variable, the score variable will be increment.

Now I have a problem. When the customer finds an error more than one time, the point variable increments every time.

My idea: Before filling the variable, Brightsign should check if the variable already have a "O" or not. When yes, nothing happen, if yes, it fills the variable with an "O" and increment the point variable.

 

Any idea?

 

Thank you very much!

1 comment

  • 0
    Avatar
    ^UD\_$

    You should be able to implement the logics, using BrightAuthor Conditional Targets feature.

    You could use the advanced tab in the conditional target, to increment your variable, when you variable is not "O".

     

Please sign in to leave a comment.