
-----------------------------------
D_homes
Sun Nov 08, 2009 1:59 pm

Using Sound in turing
-----------------------------------
What is it you are trying to achieve?
Stop the music file from playing if the variable "ammo" is equal to zero.


What is the problem you are having?
I can't get it to work.


Relevant code



    %check to see if mouse is clicked
    if button = 1 then
        delay (100)
        Music.PlayFile ("fire1.wav")
        ammo := ammo - 1
        %If ammo is equal to or less than 0, then it equals 0
        if ammo 