hansen19498 Posted December 9, 2016 Share Posted December 9, 2016 (edited) http://osbot.org/forum/topic/103067-audio-sound-snippet/?p=1255205 I've added all the code, but I do not know how to call it and can play it I've added all the code, but I do not know how to call it and can play it For example: stop (); The game will stop. This should be play () ;? or .... I do not know, I hope you can understand what I mean private Sound s; int XX=1; if(XX==1){s.play(); sleep(random(1013, 1233));return State.WAIT;} After the implementation, stuck Edited December 10, 2016 by hansen19498 Quote Link to comment Share on other sites More sharing options...