Project1

标题: 请教动画播放脚本 [打印本页]

作者: rexuegg123    时间: 2020-2-17 21:31
标题: 请教动画播放脚本
这段时间,因为疫情影响,上不了班……又能把游戏制作捡起来……

如题想跟大神门请教一下,脚本播放动画的方法:如按事件,角色或坐标播放
作者: play337    时间: 2020-2-17 21:53
本帖最后由 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);
作者: rexuegg123    时间: 2020-2-20 09:33
好,谢谢!
作者: rexuegg123    时间: 2020-2-20 09:35
play337 发表于 2020-2-17 21:53
影片的

var name = "文件名"

谢谢,试试去。




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1