Hi, I'm developing a plugin for a battle system in my game. What brings me here is that I want the tint event to not affect events. Is that possible? here is the line of code:
if (highlightTiles) {
highlightCounter--;
if (highlightCounter <= 0) {
$gameScreen.clearTone();
highlightTiles = null;
} else {
$gameScreen.startTint([0, 0, 255, 255], 0);
}
}
this.events().forEach(function(event) {
if (event.event().note.includes(`<${eventNoteTag}>`)) {
var tileX = Math.floor(TouchInput.x / $gameMap.tileWidth());
var tileY = Math.floor(TouchInput.y / $gameMap.tileHeight());
if (event.x !== tileX || event.y !== tileY) {
event.locate(tileX, tileY);
}
}
});
};
if (highlightTiles) {
highlightCounter--;
if (highlightCounter <= 0) {
$gameScreen.clearTone();
highlightTiles = null;
} else {
$gameScreen.startTint([0, 0, 255, 255], 0);
}
}
this.events().forEach(function(event) {
if (event.event().note.includes(`<${eventNoteTag}>`)) {
var tileX = Math.floor(TouchInput.x / $gameMap.tileWidth());
var tileY = Math.floor(TouchInput.y / $gameMap.tileHeight());
if (event.x !== tileX || event.y !== tileY) {
event.locate(tileX, tileY);
}
}
});
};