主题:  我还是不会使。延迟5分种????

xiaozhong_5d

职务:普通成员
等级:1
金币:0.0
发贴:59
#12001/12/16 14:07:59
对不起!能不能给我讲详细一点,我是用来做触摸屏的,在主界面上面等待5分种没有人点击,就返回动画,可是那段代码,往哪里放呀!谢谢!!!


级别问题。。。也说明了知识水平的高底问题。。。我们多多努力。。。

marker

职务:普通成员
等级:1
金币:0.0
发贴:65
#22001/12/16 21:53:21
xiaozhong在上个帖子中说
引用:
对不起!能不能给我讲详细一点,我是用来做触摸屏的,在主界面上面等待5分种没有人点击,就返回动画,可是那段代码,往哪里放呀!谢谢!!!


可以这样:
---------------------------------------------------------------
global pticks
on exitFrame me
pticks=the timer
if pticks>60*300 then
go 10 --动画所在桢
end if
if the mousedown then
pticks=0
starttimer
end if
go the frame
end

上面这段行为放在桢脚本里
--------------------------------
这段放在影片脚本里

on startmovie
starttimer
end
--------------------------------

编辑历史:[这消息被marker编辑过(编辑时间2001-12-16 21:55:50)]


donlee

职务:普通成员
等级:1
金币:1.0
发贴:271
#32001/12/17 11:01:34
on startmovie
set the timeoutLength to 5*60* 60
end

on timeout
go frame "my frame"