赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 3 |
经验 | 0 |
最后登录 | 2024-7-17 |
在线时间 | 47 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 346
- 在线时间
- 47 小时
- 注册时间
- 2020-6-11
- 帖子
- 1
|
之前在mv里面尝试修改过 把这段替换下试试
- SpriteEnemyTrP.prototype.createIcon = function() {
- this._iconImg = ImageManager.loadSystem("IconSet")
- this._icons = [];
- for (var i = 0; i < this._enemy._treasure.item.length; i++) {
- var item = this._enemy._treasure.item[i];
- if (item) {
- // this._icons[i] = new Sprite(this._iconImg)
- this._icons[i] = new Sprite_Base();
- this._icons[i].bitmap = this._iconImg;
- this._icons[i].item = item;
- this._icons[i].index = i;
- this._icons[i].anchor.x = 0.5;
- this._icons[i].anchor.y = 1;
- this.refreshIcons(this._icons[i]);
- this.addChild(this._icons[i]);
- this._icons[i].startAnimation($dataAnimations[parseInt(123)], false, 0);//这里设置动画id
- };
- };
- this._icons.sort(function(a, b){return b.intY-a.intY});
- this.children.sort(function(a, b){return b.intY-a.intY});
- for (var i = 0; i < this._icons.length; i++) {
- this.refreshWait(this._icons[i],i,this._icons.length);
- };
- };
复制代码 |
|