What code would I use to play a sound file when the time (counter) reaches a certain amount of time? I know this would be a global procedure because it will be the same for every frame. Example:
If Counter = 100 Then
PlaySound GetPath(2) + "blah blah.wav", False
End If
I already have the PLAYSOUND global procedure copied over. I just need the code to execute it when it reaches a certain amount of time. I got it working before but it would only work it you went to one frame and then back to the other frame again. I need it so that the sound will play on any frame at the certain amount of time. If I put the above code: If Counter = 600 Then.... It plays the file fine (Because my countdown timer is set to 600). But that isn't what I want. I want it to play at around 100 or 150.
The soundfile is in the External Folder of my Projects Folder.
Thank You
Ikonz101
EDIT: Man I have tried every different type of coding for this and can't get it to calculate the counter when it reaches a certain time to play a .wav file. Any help would be greatly appreciated. What I am trying to do is that when the time (counter) reaches around a minute it plays a audio file saying "Time Is Running Out".