$gameTroop.allMembers().length for what you asked
$gameTroop.aliveMembers().length for if you meant all alive enemies
$gameTroop.aliveMembers().length for if you meant all alive enemies
const c = SceneManager._scene._spriteset._battleField;
c.scale.x *= -1;
c.x = Graphics.boxWidth - c.x;
c.x += Graphics.boxWidth; with something to mirror the position instead, in case you want to loop it for a crab rave or something.]The screen flips but all text and gauges disappear.
Sorry, I misunderstood your post. My bad. You're definitely correct here, because I tried the code in MV and it everything is flipped (screen and text).
Untested:
Graphics._video.pause();
Graphics._onVideoEnd();
Video._element.pause();
Video._onEnd();
Array.from($gameMap.encounterList(), function(e) { return e.troopId; });
Tested, works just right, thanks a lot!
Just wanted to change the Battle BGM for each troop. I'll try this thanks!
There's no need to go into code for this. Just leave the Battle Music blank in the System tab of your database, then give each troop a Turn 0 troop event that plays whichever track you like.
I already did (I saw your comment on another thread), but there's a slight delay to the BGM. That's why I'm trying this.
Oh yeah, about that... It doesn't work. Even after putting it above all my other plugins, it still won't work.
Have you also tried below all other plugins?
Window with Window_MenuCommand.Works perfectly fine for me when I provided the answer.
Original thread: https://forums.rpgmakerweb.com/threads/javascript-questions-that-dont-deserve-their-own-thread.46341/