| 赞 | 2 |
| VIP | |
| 好人卡 | |
| 积分 | 2 |
| 经验 | |
| 最后登录 | 2017-7-18 |
| 在线时间 | 2070 小时 |
Mr.Gandum
- 梦石
- 0
- 星屑
- 226
- 在线时间
- 2070 小时
- 注册时间
- 2007-1-31
- 回帖
- 2982

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
默认镜像动画算法奇葩,导致使用旋转的动画会出现异常,现上插件修复:
- //=============================================================================
- // Fix Mirrored Animation
- // MirrorAnimationFix.js
- // Version: 1.00
- //=============================================================================
- var Imported = Imported || {};
- Imported.Kien_MirrorAnimationFix = true;
- var Kien = Kien || {};
- Kien.MirroredAnimation = {};
- //=============================================================================
- /*:
- * @plugindesc Fix A bug that animatio will show wrong when used mirror in script.
- * @author Kien
- *
- */
- Kien.MirroredAnimation.Sprite_Animation_setup = Sprite_Animation.prototype.setup;
- Sprite_Animation.prototype.setup = function(target, animation, mirror, delay) {
- Kien.MirroredAnimation.Sprite_Animation_setup.apply(this,arguments);
- if (this._animation && this._mirror){
- this.scale.x = -1;
- }
- };
- Sprite_Animation.prototype.updateCellSprite = function(sprite, cell) {
- var pattern = cell[0];
- if (pattern >= 0) {
- var sx = pattern % 5 * 192;
- var sy = Math.floor(pattern % 100 / 5) * 192;
- var mirror = this._mirror;
- sprite.bitmap = pattern < 100 ? this._bitmap1 : this._bitmap2;
- sprite.setFrame(sx, sy, 192, 192);
- sprite.x = cell[1];
- sprite.y = cell[2];
- sprite.rotation = cell[4] * Math.PI / 180;
- sprite.scale.x = cell[3] / 100;
- if (cell[5]) {
- sprite.scale.x *= -1;
- }
- sprite.scale.y = cell[3] / 100;
- sprite.opacity = cell[6];
- sprite.blendMode = cell[7];
- sprite.visible = this._target.visible;
- } else {
- sprite.visible = false;
- }
- };
复制代码 |
评分
-
查看全部评分
|