AbstractMan

Forever lost in the Tea Room of Despair
Veteran
Joined
Jun 22, 2019
Messages
76
Reaction score
45
First Language
English
Primarily Uses
RMMV
Hello!



So I have been using Lecodes tactical battle system code for quite sometime and have been slowly trying to modify and shape it visually to fit my game's current style. Now while I know not a lot of you use this plugin, the question I have maybe more generally aimed at those with more JS coding knowledge than I have. In Lecodes default battle system, before a fight starts an image is pulled up from one of my folders. Now what I am trying to do is show an animation in its place by either showing several different pictures or a sprite command.

The line of code I think i am looking to modify is this...
BattleManagerTBS.createBattleStartSprite = function () {
var bitmap = ImageManager.loadLeTBS("Battle_Start");
this._startSprite = new Sprite(bitmap);
this._startSprite.visible = false;
this.getLayer("fixedInfo").addChild(this._startSprite);
};

And I am looking to replace it with an animation that my wonderful artist made to be exact.


sample-battle-on.gif


If anyone has any hints of advice I am all ears!
 

Attachments

  • cod_battle_on.png
    cod_battle_on.png
    7 KB · Views: 0

Dails

Villager
Member
Joined
Jul 11, 2021
Messages
6
Reaction score
2
First Language
Español
Primarily Uses
RMMV
Creo que podría hacerse con un evento <LeTBS>.

Pones esa imagen para animar a través de un evento de <LeTBS> con "Mostrar imagen" al comienzo del combate y la comentas con "<LeTBS> Trigger_Type: battle_start" y eso sería todo.

Avísame si te funciona.
 

AbstractMan

Forever lost in the Tea Room of Despair
Veteran
Joined
Jun 22, 2019
Messages
76
Reaction score
45
First Language
English
Primarily Uses
RMMV
Perfect! Thank you!
 

Latest Threads

Latest Profile Posts

Don't you just hate it when you get a high level armor only for it to look like a metal plated bikini on your female character?? Seriously. How can that protect you??? Enemies can hit the squishy parts! :kaosigh:
Bathrooms are not designed for the middle of the night.
so... I decided since a park was an area in my game... here's an enemy that's slide with a hand behind it. cause why not.

Forum statistics

Threads
115,277
Messages
1,088,560
Members
149,890
Latest member
mekiboss
Top