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

Doing RPG Maker News for 26th September 2021

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.

Forum statistics

Threads
115,386
Messages
1,089,489
Members
150,116
Latest member
Kinenveu
Top