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

I might not participate in the Boss Battle contest after all... I have more important things to do, like Wishful Wanda. And of course the Dark Deception spinoff I plan to pitch, Demon Slayer.
Changed my avatar, goodbye Alan Sugar, hello George Carlin (one of my favorite human beings ever)
If you still don't subscribe our Polish channel please consider it :)
1.png
Who wants to see my review of the worst star wars movie? This movie has all the excitement of being on Jury Duty of the most boring case ever about trade negotiations.
A lot to learn to make a game. Can I handle it?

Forum statistics

Threads
115,171
Messages
1,087,803
Members
149,723
Latest member
krinalle
Top