I really need help with this.
I have tried making this work and i just can´t understand why.
Im trying to simply make a button that controls the state of the audio.
Since i cant post capx or links im just gonna write down the "code" that i have inserted.
I have a very basic sprite with 2 animation frames. In the first frame it´s color is blue and in the second its black.
I have a single numerical type global variable called sound.
The music file format was wav. so it was converted just fine.
Heres what i have "coded":
Global number Sound= 0
System - On start of layout - Stop Sprite animation.
- Play Audio_File looping at volume 0 db( tag "Music")
Touch - On touched Sprite - Add 1 to Sound.
System - Sound > 1 - Set Sound to 0.
System - Sound=0 - Set animation of Sprite to 0
- Play Audio File looping at volume 0 db( tag "Music")
System - Sound=1 - Set animation of Sprite to 1
- Stop "Music".
End of Code
However this doesnt work and i simply dont understand why or what im doing wrong.
Someone help me pls i have been on this problem for hours now