主题:  !!!!

不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#12001/12/5 20:01:12
用DirectMediaXtra引入一段MPG,并在里面标示了一个提示点“001”,请教高手,在播到“001”时就自动播放222.WAV,怎么用LINGO来做到! 能写出语法句式最好!谢谢了!!



我是小马

职务:普通成员
等级:3
金币:17.0
发贴:794
注册:2000/11/13 14:56:59
#22001/12/6 10:58:00
使用IsPastCuePoint(sprite x, cuepointindex)

if IsPastCuePoint(sprite x, cuepointindex) then
puppetSound whichChannel, whichCastMember
end if



不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#32001/12/6 20:32:19
再次谢谢啦!!!



不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#42001/12/6 22:38:15
mzgjingsi:
"if IsPastCuePoint(sprite x, cuepointindex) then
puppetSound whichChannel, whichCastMember
end if"
没有反应呀!这段代码该写在什么脚本里呀?我把它放在帧脚本和精灵脚本里都没用。
请再次指点,多谢!!



我是小马

职务:普通成员
等级:3
金币:17.0
发贴:794
注册:2000/11/13 14:56:59
#52001/12/7 9:28:44
不懂就问盗版在上个帖子中说
引用:
mzgjingsi:
"if IsPastCuePoint(sprite x, cuepointindex) then
puppetSound whichChannel, whichCastMember
end if"
没有反应呀!这段代码该写在什么脚本里呀?我把它放在帧脚本和精灵脚本里都没用。
请再次指点,多谢!!




可以放再on exitframe里
on exitframe me

"if IsPastCuePoint(sprite x, cuepointindex1) then
puppetSound whichChannel, whichCastMember1
end if"

end



不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#62001/12/7 20:03:43
没有反应啊!“cuepointindex1”是自己做的提示点名吗?比如:”001“!!?



我是小马

职务:普通成员
等级:3
金币:17.0
发贴:794
注册:2000/11/13 14:56:59
#72001/12/8 11:50:46
cuepointindex1是指第几个cuepoint,是一个整数,不是名称



不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#82001/12/8 19:22:21
谢谢啦!!!



不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#92001/12/9 23:25:24
"cuepointindex1是指第几个cuepoint,是一个整数,不是名称"
但是我只能这样写frame脚本才能播放“M25”
on exitFrame me
go to the frame

end
on cuePassed
if IsPastCuePoint(sprite 10, 2) then
puppetSound 3, member "m25"
end if
end
不过这样“M25”播放一会儿又开始重播,只播一小段,不断的重复,这不是我想要的,我只想它完整的播放一遍。这该怎么写脚本呀???



我是小马

职务:普通成员
等级:1
金币:0.0
发贴:2
注册:2004/1/14 15:08:28
#102001/12/10 11:56:14
作如下修改应该就可以了
on exitFrame me
go to the frame
end
on cuePassed
if IsPastCuePoint(sprite 10, 2) then
if soundbusy(3) = 0 then
puppetSound 3, member "m25"
else if soundbusy(3) = 1 then
if sound(3).member = member( "m25") then
do nothing
else
puppetSound 3, member "m25"
end if
end if
end if
end



不懂就问盗版

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2001/7/11 20:43:54
#112001/12/10 19:52:33
谢谢啦! ;)