欢迎来到天天文库
浏览记录
ID:10013089
大小:30.50 KB
页数:6页
时间:2018-05-20
《director常用语言》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、跳转到某一幀:gotoframe☻在某一帧暂停:gototheframe跳转到某个影片:playmovie“**”在第一帧处循环播放:gotoframe1退出:quat()前进和返回命令:onexitFramemegototheframeendonmouseUpgototheframe+1endmouseUponrightMouseUpgotomarker(-1)endrightMouseUponkeyUpgototheframe+1endkeyUponrightMouseDownmeend暂停命令onexitframemegototheframeend前进到指定点播放on
2、mouseupmegotoXend当招标进入的时候,前进指定点播放onmousewithinmegotoXendonmouseleavemegotoXend停止onexitframemegototheframeend前进onmouseup(左健点击)megototheframe1end后退onrightmouseup(右健点击)megopreviousend进入onmousewithinmegotoXend离开onmouseleavemegotoXendonmousewithinmegotoXend(经过时到X)onmouseleavemegotoXend(离开时回到X)o
3、nmouseDownmew=sprite(1).widthh=sprite(1).heightsprite(1).width=w/2sprite(1).height=h/2end(点鼠标左键成培缩小)onrightmouseupmew=sprite(1).widthh=sprite(1).heightsprite(1).width=w*2sprite(1).height=h*2end(点鼠标右键成培放大)continue(继续)pause(暂停)onexitframemegoloopend(使电影实现循环播放)onkeydowncase(thekey)of"f":goto1
4、endcaseendkeydown(当按下F键返回到第一帧)onkeydowngoto1endkeydown(当按下任意键返回到第一帧)onmouseUPmepause(暂停)onrightmouseUPmeplayframe——(任意键循环)/continue(继续)onrightmouseUpmegoprevious(去前一个)end倒数计时器的语句(3分钟计时)globaltimerminuteglobaltimersecondonsettimesettotal=(3*3600-thetimer)/60settimerminute=total/60settimerse
5、cond=total-timerminute*60endonchangespritesetm1=timerminute/10setm2=(timerminute-m1*10)sets1=timersecond/10sets2=(timersecond-s1*10)setthememberofsprite6tomember(m1+90)setthememberofsprite7tomember(m2+90)setthememberofsprite8tomember(s1+90)setthememberofsprite9tomember(s2+90)updatestageend
6、格式化命令:commandformat
此文档下载收益归作者所有