My code :
I am using a Label to count the score , I thought it would be nice to hear a sound when
one point is made , and so on until 5 points.
This is what i want:
label displays 1
sound
label displays 2
sound
until5
This is what I got :
label displays 00
sound
sound
sound
sound
sound
label displays 05
Maybe I am thinking to simple a file is attached. see the attached file.
B4X:
Sub Button1_Click
MediaPlayer1.Load(File.DirAssets, "pingpoints.mp3")
For i = 1 To 5
Label1.Text = i
MediaPlayer1.play
Do While MediaPlayer1.IsPlaying
Loop
Next
End Sub
I am using a Label to count the score , I thought it would be nice to hear a sound when
one point is made , and so on until 5 points.
This is what i want:
label displays 1
sound
label displays 2
sound
until5
This is what I got :
label displays 00
sound
sound
sound
sound
sound
label displays 05
Maybe I am thinking to simple a file is attached. see the attached file.