设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3475|回复: 4

[有事请教] 请教动画播放脚本

[复制链接]

Lv3.寻梦者

梦石
0
星屑
2336
在线时间
168 小时
注册时间
2017-4-25
帖子
219
发表于 2020-2-17 21:31:21 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
这段时间,因为疫情影响,上不了班……又能把游戏制作捡起来……

如题想跟大神门请教一下,脚本播放动画的方法:如按事件,角色或坐标播放

Lv4.逐梦者

梦石
0
星屑
6933
在线时间
1351 小时
注册时间
2018-12-16
帖子
1939
发表于 2020-2-17 21:53:52 | 显示全部楼层
本帖最后由 play337 于 2020-2-17 21:59 编辑

影片的

var name = "文件名"
var ext = this.videoFileExt();
Graphics.playVideo('movies/' + name + ext);
this.setWaitMode('video');

動畫的

Replace character with one of these:
- $gamePlayer;
- $gameMap.event(ID);
- For "This Event" $gameMap.event(this._eventId)

If you want Followers remember that their IDs starts from 0.
- $gamePlayer._followers._data[id].requestAnimation(1);

For Example:
var character = $gameMap.event(1);
var id = 1;
character.requestAnimation(id);

点评

666  发表于 2020-2-21 14:27
回复 支持 1 反对 0

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2336
在线时间
168 小时
注册时间
2017-4-25
帖子
219
 楼主| 发表于 2020-2-20 09:33:21 | 显示全部楼层
好,谢谢!
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2336
在线时间
168 小时
注册时间
2017-4-25
帖子
219
 楼主| 发表于 2020-2-20 09:35:07 | 显示全部楼层
play337 发表于 2020-2-17 21:53
影片的

var name = "文件名"

谢谢,试试去。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-3-29 07:02

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表