赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 3254 |
最后登录 | 2017-8-11 |
在线时间 | 42 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 42 小时
- 注册时间
- 2017-6-8
- 帖子
- 36
|
2楼
楼主 |
发表于 2017-7-17 14:54:37
|
只看该作者
为什么内置脚本里面只有设定图片属性的内容,表示显示图片的代码在哪里
- 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();
- };
复制代码 |
|