I'm just trying to create a program that plays certain sounds at certain times. For example I might want a "start" sound and then 2 minutes later a "stop" sound. But the sound repeats many times a second. How do I get it to just play once? I'm a complete newb BTW so don't get too technical. Thx
; Timer
;_______________
Graphics3D 640,480
SetBuffer BackBuffer()
; Create camera
cam=CreateCamera()
PositionEntity cam, 0,0,0
; Creating a light
light=CreateLight(3)
;Loading the sounds
rndtwo = LoadSound("rndtwo.wav")
;Create timer.
timer = MilliSecs()
; This following code makes our program run
While Not KeyDown( 1 )
;Just trying to make certain sounds play at certain times dictated by a timer
If MilliSecs() < timer + 1000 Then
PlaySound rndtwo
EndIf
UpdateWorld
RenderWorld
Flip
Wend
End
; Timer
;_______________
Graphics3D 640,480
SetBuffer BackBuffer()
; Create camera
cam=CreateCamera()
PositionEntity cam, 0,0,0
; Creating a light
light=CreateLight(3)
;Loading the sounds
rndtwo = LoadSound("rndtwo.wav")
;Create timer.
timer = MilliSecs()
; This following code makes our program run
While Not KeyDown( 1 )
;Just trying to make certain sounds play at certain times dictated by a timer
If MilliSecs() < timer + 1000 Then
PlaySound rndtwo
EndIf
UpdateWorld
RenderWorld
Flip
Wend
End