level 1
声音没有Stop函数,但是你可以建造自己的Stop函数。
比如;
boolean musicStop;
int count;
void setup()
{
musicStop=false;
{
void dra()
{
if(~~~~~){
if(musicStop==false)
{ display your music}
count=count+1;
}
如果你想根据时间停,那就在Draw里设置一个Count, 整个程序一秒钟运行30下,或者你可以通过frameRate(the rate you want/sec); 函数更改;
其他可以直接用If条件
2015年04月07日 09点04分
4
谢谢谢谢谢!!
![[太开心]](/static/emoticons/u592au5f00u5fc3.png)
!
2015年04月13日 07点04分
level 9
不用自己构造,你之前导入的声音库里就有pause函数
2015年05月04日 15点05分
5