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.
  • Hey guys,

    Sure this is a super easy one, but having trouble figuring it out. Basically I want to have the player select an object by left clicking it, and then deselect it by left clicking it again. When they click it, among other things it turns a flag on, and when they click it again it should turn the flag off.

    But nothing happens when I run the app, as if it's doing both events for the one click (turning it on and then off in quick succession). When I tested changing one of them to a double-click, it all ran correctly. However, I'd much rather the user just click once in both cases. Is there any way I can fix this?

  • What happens here is that Fusion reads through the events from top to bottom. If the event that tells Fusion to turn the flag on is above the other one, it will first turn the flag on, and then in a later event when it is told to check if the flag is on, that test will turn out true, and it will turn it off.

    A good solution is to use the Toggle flag action. This action sets the flag on if it is off, and turns it off if it is on. Since this only requires one event, you wouldn't get into the sort of trouble as decribed above.

    Another solution is to go for the first approach, but check if the flag has been toggled allready. Set flag 1 on whenever you set the flag 0 on or off, and in any events that sets flag 0 on or off, test if flag 1 is off. For this to work you must have an always event that sets flag 1 off, and place it above all events regarding flag 0.

Participate now!

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