hi everyone! I have a small problem that is probably really easy to fix,
I have value, it is set to 0 at start of level, but when you are detected by the enemy, the counter is set to 1 and it plays a midi when on 1. But the problem is it always starts playing the music when the counter is 1, and slows the game down sop much it almost freezes. I've tried run once when event loops but maybe I'm not using it correctly...
btw im using tgf
Use the oh-so-useful condition 'Only one action when event loops' - while the conditions above are true, the action will only run once. When they become false and then true again, the actions will run once again.
Try placing the "Only one action when event loops" condition last in the event (drag it down so it's on the bottom of the panel). MMFusion warns about something like this in its Readme, so maybe it's a similar bug. I always do it just out of habit, looks a bit neater.