Original link: https://www.youtube.com/watch?v=mKlPmxV8JgA&feature=youtu.be
So in the video I have a level where you have to hit all the blocks in order to advance. What I did was have a variable "blocks" set to 20. Then I made an event that will subtract 1 from the variable and trigger a script.
Code: Select all
If val(Blocks)=0 Then
call TCreate("Lock", 0)
End ifEvent "Lock" will hide the lock that is blocking the exit and play a sound effect. The problem with this is that when I trigger the script, it will continuously play the sound effect. How do I change the script so it only plays the sound effect once?









