你在停止帧加入:
on exitFrame me
r=random(1,10)------------(1-10的声音数,可多加几个声音文件)
if not (soundbusy(2)) then sound playfile 2, "@\"&r&".mp3"------(@\"&r&".mp3为外部的声音文件)
go to the frame
声音文件最好放在外部,做外部连接
或者用这种方法:
if soundBusy(2) then
sound(2).play()
else
r=random(1,100)
sound playfile 2,"..\"&r&".mp3"
end if
end
也可实现自动和随机播放声音效果
hystar@8848.net