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

seems absolutely WILD to me now all the hundreds of hours of work I used to do in 2k(3) over a decade ago with a resolution of 320x240. that seems so insanely TINY now, seemed so normal at the time!
Playing Aroma Indosiar theme song.
Aroma is an Indonesian TV show about cooking. :)
Working on a characteeer! (Why is it so hard to color hair?) ;-;
Silly-Sketches.png
Just finished eventing a couple simple puzzles in RMMV, for my very first game "Sample Quest." Just messing around, throwing things together, and calling it a story XD On a non-RM note, got my hair cut today!
I feel the need to inform everyone on the forums NOT to go with Web Hosting Canada for your hosting needs. It is by far the worst customer service and just overall experience I have ever had with hosting and I am Canadian...

Forum statistics

Threads
115,372
Messages
1,089,347
Members
150,067
Latest member
GutterRat
Top