Project1
标题:
怎样做一个点击图片触发事件的插件
[打印本页]
作者:
kys2016
时间:
2017-7-17 14:46
标题:
怎样做一个点击图片触发事件的插件
我想用element.addeventlistener做,但是不知道图片的element名字在哪里找{:2_253:}
作者:
kys2016
时间:
2017-7-17 14:54
为什么内置脚本里面只有设定图片属性的内容,表示显示图片的代码在哪里
Game_Picture.prototype.initTarget = function() {
this._targetX = this._x;
this._targetY = this._y;
this._targetScaleX = this._scaleX;
this._targetScaleY = this._scaleY;
this._targetOpacity = this._opacity;
this._duration = 0;
};
Game_Picture.prototype.initTone = function() {
this._tone = null;
this._toneTarget = null;
this._toneDuration = 0;
};
Game_Picture.prototype.initRotation = function() {
this._angle = 0;
this._rotationSpeed = 0;
};
Game_Picture.prototype.show = function(name, origin, x, y, scaleX,
scaleY, opacity, blendMode) {
this._name = name;
this._origin = origin;
this._x = x;
this._y = y;
this._scaleX = scaleX;
this._scaleY = scaleY;
this._opacity = opacity;
this._blendMode = blendMode;
this.initTarget();
this.initTone();
this.initRotation();
};
复制代码
作者:
燃烧绳命
时间:
2017-7-18 00:43
YEP图片公共事件插件
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1