Clickteam Fusion 2.5

Clickteam Fusion 2.5

Counter related event causes sample to bug out
I have an event tied to a counter and when the counter is at a certain value it is meant to play a sound so I use sample but when the counter is at it's value it starts glitching and the sound keeps looping despite the fact I am just using a single play sample
< >
Showing 1-1 of 1 comments
So long as the condition is true, it will always play the sample repeatedly. The two easiest solutions is to force the condition to stop being true after it happens, such as "play sample, THEN set counter to 0". Or, add the "Only one action when event loops" condition, located under Special, in "Limit conditions."

The "Only one action when event loops" will only let the event run one time per the condition being true. So the sample will play when the counter reaches a certain value, then it will not play again even if the counter stays at that value. This only resets if the counter changes to a different value, then goes back to being the required value, only then will it play again.

Either method is fine, but I find the "Only one action" condition to be finnicky cause it also can get reset when groups are opened and closed. Forcing the counter to change value gives you more direct control over its behavior and a much clearer idea of what is happening when you have to debug it.
Last edited by SpellSword0; Jan 20 @ 12:02pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50