Button Press and repeat action until pressed again

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • So I am implementing an auto feature into my game with the click of a button, and I don't know how to loop it until button is clicked again.

    Along with that can I change the text of the button back and forth?

  • I think a flag (boolean variable) should do the job: basically when the button is pressed and the value of the flag is 0, the value is set to 1. If the value was 1, it's set to 0. As long as the value is 1, your auto feature repeats.
    You can also change the text on the button when the value of the flag is changed.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!