请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?
[ADMINOPE=yfdmt|qingyu|威望由 2 增加至 3|有质量的回帖可增加威望,威望到3以后就可以申请VIP会员|1183203802]property pSwitch,pBlend
on beginsprite me
pBlend = 1
pSwitch = false
starttimer
end
on exitFrame me
if the timer < 60 * 10 then
pSwitch = false
else
pSwitch = not pSwitch
end if
if pSwitch then
if pBlend = 1 then
sprite(1).blend = sprite(1).blend -10
sprite(2).blend = sprite(2).blend +10
if sprite(1).blend < 10 then
pBlend = 0
starttimer
end if
end if
if pBlend = 0 then
sprite(2).blend = sprite(2).blend -10
sprite(1).blend = sprite(1).blend +10
if sprite(2).blend < 10 then
pBlend = 1
starttimer
end if
end if
end if
go the frame
end