Forum Discussion

AdetunjiAdeb193's avatar
AdetunjiAdeb193
Community Member
5 years ago

Click Counter down from 10 - 0

I hahev project I'm working on. user is meant to select 10 items and after they can move on. my click counters continues until -100. I only wanted it end at zero and also can only click on item once not multitple times. 

can anyone help. 

Thanks 

TJ

1 Reply

  • Hi TJ, 


    It sounds a little like you're having trouble with a variable and the interaction between a button(object) and the variable.

    I've attached a quick 10 > 0 countdown clicker for you to have a look over. Hopefully this is the kind of thing you're looking for? Please let me know if it isn't and I will try and help in any way possible.

    A quick description of the project if you want to add this to your own storyline file.

    • Number variable with default value of 10
    • Text box with a reference to this variable
    • Button that adjusts variable (Subtract value =1) when clicked
    • Change state for the button to (Disabled) when variable = 0 

    Hopefully that explains it all for you. :)

    Have a great day!

    Owen