how to play sound in first click and stop in the next click?
my code for play file but how can i stop the music from the same button?
Hi, on event 3 you could try:
On Left Button Clicked on AbdullahPic
(subevent) Audio: Not Tag "ddd" is playing : Play bass tag "ddd" looping
(subevent) else : Stop tag "ddd"
Develop games in your browser. Powerful, performant & highly capable.
Take your button sprite and create boolean variable. Name it something like "Is_Playing". Now events:
Main Event
On BUTTON clicked
Sub-Events