ok i guess that happens when the gameplayer moves to the map or when the map is loaded..
edit.
well i downloaded the lecode demo and tried a bit also looked into the console, but i coudnt figure it out sry.
ok i guess that happens when the gameplayer moves to the map or when the map is loaded..
BattleManagerTBS.isActionScopeAvailable = function () {
return this.actionScope() && this.actionScope().cells && this.actionScope().center;
};
TBSEntity.prototype.getDirectionTo = function (cell) {
var oldDir = this.getDir();
this.lookAt(cell);
var dir = this.getDir();
this.setDir(oldDir);
return dir;
};
BattleManagerTBS.makeObjScopeParam = function (obj, entity, center) {
obj = obj || this.activeAction().item();
var param = {
user: entity,
dir: entity.getDirectionTo(center),
need_check_los: true,
exclude_center: true,
line_of_sight: true,
remove_nonvisibleCells: false,
select: obj ? obj.TagsLetbs.scopeSelect : null
};
if (!obj) return param;
var data = obj.TagsLetbs.scopeOptions;
data = LeUtilities.stringSplit(data, ",");
data.forEach(function (arg) {
if (arg.match(/include_center/i))
param.exclude_center = false;
else if (arg.match(/through_obstacles/i))
param.line_of_sight = false;
else if (arg.match(/need_free_cell/i))
param.need_free_cell = true;
}.bind(this));
return param;
};
if (Input.isRepeated("right"))
this.processCallback("Right");
if (Input.isRepeated("down"))
this.processCallback("Down");
if (Input.isRepeated("left"))
this.processCallback("Left");
if (Input.isRepeated("up"))
this.processCallback("Up");added \i[xx] before the word?
var animation_position = Sprite_Animation.prototype.updatePosition;
Sprite_Animation.prototype.updatePosition = function() {
animation_position.call(this)
if (this._animation.name.contains("TPZH")) {
this.z = -1;
} else {
this.z = 8;
}
};
var animation_position = Sprite_TBSAnimation.prototype.updatePosition;
Sprite_TBSAnimation.prototype.updatePosition = function() {
animation_position.call(this)
if (this._animation.name.contains("TPZH")) {
this.z = -1;
} else {
this.z = 8;
}
};
Spriteset_BattleTBS.prototype.createBattleLayers = function () {
//-Scopes
this._scopesLayer = new TBSScopeLayer();
this._scopesLayer.z = 1;
this._tilemap.addChild(this._scopesLayer);
this._scopesLayer.createSelectionLayer();
this._tbsLayer.addChild(this._scopesLayer._selectionLayer);
//-Ground entities
this._groundEntitiesLayer = new Sprite();
this._groundEntitiesLayer.z = 1;
this._tilemap.addChild(this._groundEntitiesLayer);
//-Ground
this._groundLayer = new Sprite();
this._groundLayer.z = 2;
this._tbsLayer.addChild(this._groundLayer);
//-Battlers
this._battlersLayer = new Sprite();
this._battlersLayer.z = 4;
this._tilemap.addChild(this._battlersLayer);
//-Animations
this._animationsLayer = new TBSMapAnimation();
this._animationsLayer.z = 4;
this._tbsLayer.addChild(this._animationsLayer);
//-Movable Info
this._movableInfoLayer = new Sprite();
this._movableInfoLayer.z = 6;
this.addChild(this._movableInfoLayer);
//-Movable Windows
this._movableWindowsLayer = new Sprite();
this._movableWindowsLayer.z = 6;
this.addChild(this._movableWindowsLayer);
//-Fixed Info
this._fixedInfoLayer = new Sprite();
this._fixedInfoLayer.z = 6;
this.addChild(this._fixedInfoLayer);
//-Debug
var bitmap = new Bitmap(Graphics.width, Graphics.height);
this._debugLayer = new Sprite(bitmap);
this._debugLayer.z = 7;
this._tbsLayer.addChild(this._debugLayer);
};
The attempt failed. Can you elaborate?
this is from demo?
Sorry, I don't know script language, and there are moving words in it?
sry.. Kinda reply other and forgot about this
Thank you for your detailed explanation, I understand! Thanks again!
Your welcome.
Original thread: https://forums.rpgmakerweb.com/threads/lecode-tactical-battle-system-0-77-2b.71572/