Difference between revisions of "Sound.stop"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>Sound.stop</c> stops this sound if it is currently playing. == Example == <ms>s = file.loadSound("/sys/sounds/bonus.wav") s.loop = true s.play; key.get; s.stop</ms> Ca...")
 
(No difference)

Latest revision as of 23:00, 1 April 2020

Sound.stop stops this sound if it is currently playing.

Example

s = file.loadSound("/sys/sounds/bonus.wav")
s.loop = true
s.play; key.get; s.stop