How to add an enemy mid battle behind existing enemy and have it move

Specific thing I'm trying to do but not having luck. I'd like to have an enemy appear mid-battle (easy), but I'd like to have it appear behind the existing enemy, and emerge from behind like it was hiding there the entire time.

Might anyone have any ideas how to accomplish this?

Thank you!! :LZSgrin::LZSgrin::LZSgrin:
You can use this script call
BattleManager._spriteset._enemySprites[0].startMove(x,y,duration)

0 is the Enemy in the troop index, 0 is the first enemy, 1 is the second enemy, ect...
X and Y is how much it move AWAY from it's original starting position. So Positive or Negative go left or right, up or down.
Duration is how fast or slow the movement is.
You can use this script call
BattleManager._spriteset._enemySprites[0].startMove(x,y,duration)

0 is the Enemy in the troop index, 0 is the first enemy, 1 is the second enemy, ect...
X and Y is how much it move AWAY from it's original starting position. So Positive or Negative go left or right, up or down.
Duration is how fast or slow the movement is.

Wow this is amazing that this script call exists, I would not have guessed.

I will give it a try -- in the meantime, is there a way to add the enemy mid-battle behind the existing enemy? That way I could use this script call to move the new enemy out from behind.

Thank you so much @coyotecraft !
In the troop tab, you can just click and drag the enemy sprites into the position you want.
I dunno how pixel perfect you want or need it to be.
But

BattleManager._spriteset._enemySprites[0]._homeX = BattleManager._spriteset._enemySprites[1]._homeX BattleManager._spriteset._enemySprites[0]._homeY = BattleManager._spriteset._enemySprites[1]._homeY

You set the battler sprite to specific coordinates with this too. Moving the first enemy to the location of the second enemy. I haven't tested it myself though.
So I've tested out the script call for moving the enemy, and I'm afraid I can't get it to work.

I'm using the following conditions to test:

2022-05-12 02_40_18-Window.png


So when the main enemy (1) is at half health, enemy 2 should move down.

There are two enemies on the screen, which I suppose are considered sprites 1 and 2, not 0 and 1? I've tested both 1 and 2 there, and neither work to move either of the sprites.

So, should the script call as I have it move enemy 2 down 300 pixels in 60 frames? Do I have it right, or am I doing something wrong?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-an-enemy-mid-battle-behind-existing-enemy-and-have-it-move.147492/