Remove Autotile Animate
This commit is contained in:
parent
82dcff123a
commit
b9af2c8e39
12
libs/maps.js
12
libs/maps.js
@ -1200,12 +1200,14 @@ maps.prototype.removeGlobalAnimate = function (x, y, all) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var t = 0; t < core.status.globalAnimateObjs.length; t++) {
|
core.status.globalAnimateObjs = core.status.globalAnimateObjs.filter(function (block) {return block.x!=x || block.y!=y;});
|
||||||
if (core.status.globalAnimateObjs[t].x == x && core.status.globalAnimateObjs[t].y == y) {
|
|
||||||
core.status.globalAnimateObjs.splice(t, 1);
|
// 检查Autotile
|
||||||
return;
|
if (core.isset(core.status.autotileAnimateObjs.blocks)) {
|
||||||
}
|
core.status.autotileAnimateObjs.blocks = core.status.autotileAnimateObjs.blocks.filter(function (block) {return block.x!=x || block.y!=y;});
|
||||||
|
core.status.autotileAnimateObjs.map[y][x] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////// 设置全局动画的显示效果 //////
|
////// 设置全局动画的显示效果 //////
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user