用户名: 密码: 免费注册 忘记密码? 网站地图 | 加入收藏 | 设为首页
首页 | 新闻 | 工具 | 系统 | 办公 | 聊天 | 多媒体 | 网页 | 运营 | 平面 | 欣赏 | 数据库 | 程序 | 服务器 | 组网
网页 | 3dmax | Ghost | Windows Xp| Dreamweaver | photoshop | Flash | office | Alexa | Css | QQ | Asp | PHP | Jsp | Access
Flash MX 2004入门 | 网站推广策略 | CorelDRAW入门 | ASP学习 | 网站建设大师功 | Word入门
  iTbulo.com > 学院 > 多媒体教程 > Director教程 > 文章正文
碰撞动画特效制作
iTbulo.COM 2005-12-9 未知()
碰撞动画特效制作

本实例演示一次空难事故的发生过程,通过本实例学习如何控制精灵的大小、位置、旋转和颜色。

*  碰撞动画制作操作步骤如下:

(1) 进入Director 8.5。执行ModifyMovieProperties命令,在舞台属性检查器对话框中将电影舞台的大小设置为640×480,然后将电影背景颜色设置为白色,如图7-25所示。

7-25  设置舞台属性

(2) 执行FileImport命令,调入本书光盘中的Colud017155.jpg3043.jpg文件,然后将Internal Cast窗口中的演员拖动到舞台中并调整大小,如图7-26所示。

7-26  精灵的放置位置

(3) 执行WindowScore命令,调整3个精灵的开始帧为第1帧,终止帧为第4帧,如图7-27所示。

7-27  设置精灵的帧数

(4) 执行WindowText命令,打开Text窗口,输入“点背!”然后设置字体和字号,如图7-28所示。再将该演员拖动到通道4中的第4帧位置,并在舞台上调整位置。

7-28  输入文本

(5) Score窗口的Script通道中双击第2帧,在弹出的Script窗口中,输入以下Lingo控制语句,如图7-29所示。

on exitFrame me

  set Vloc3 = the locV of sprite 3

  set Hloc2 = the locH of sprite 2

  set HT3 = the height of sprite 3

  set WD3 = the width of sprite 3

  repeat with i = 1 to 10

    set the skew of sprite 2 =i*530

    set the locH of sprite 2 = Hloc2i*12

    set the locV of sprite 3 =Vloc3+i*10

    set the height of sprite 3 =HT3+i*3

    set the Width of sprite 3 =WD3+i*3

    set the rotation of sprite 3 = i * 36

    waita

    updatestage

  end repeat

  repeat with i = 1 to 10

    set the skew of sprite 2 =i*2

    waitb

    updatestage

  end repeat

end

 

on waita

  repeat with n =1 to 80000

  end repeat

end

on waitb

  repeat with n =1 to 10000

  end repeat

end

说明:

其中waitawaitb句柄设置了时间延迟。

7-29  2帧位置的Lingo脚本

(6) Score窗口的Script通道中双击第3帧,在弹出的Script窗口中,输入以下Lingo控制语句,如图7-30所示。

on exitFrame me

   repeat with i =1 to 8

    set the rotation of sprite 2 =i * 10

    updatestage

  end repeat

  set the forecolor of sprite 2 to 250

end

说明:

在循环语句中设置了精灵2的旋转,其后设置了精灵2的颜色。

7-30  2帧位置的Lingo脚本

(7) Score窗口的Script通道中双击第4帧,在弹出的Script窗口中,输入以下Lingo控制语句,如图7-31所示。

on exitFrame me

  go to the frame

end

说明:

当播放到该帧时,将停留在该帧上。

7-31  4帧位置的Lingo脚本

(8) 保存电影文件,执行WindowInspectorsProperty命令,在控制面板中播放电影。效果如图7-32所示。

7-32  碰撞的动画效果

文章搜索
相关资讯
相关文章 相关下载
图形面板制作
与Flash交互制作按钮
图像替换动画特效制作
正弦运动动画特效制作
变形动画与翻转动画特效制作
焦点信息