How to move Sideview-Enemy position during Fight

Hi guys, i'm having troubles... 🙁

If i've a very little enemy, and the position is setted in the troop, when this enemy will transform itself in another enemy that is very big, it goes out the screen.

I can't find a solution, how can i set a new position of the enemy when it is trasforming in the new enemy? With plugin, or with command scripts...

Remember that the enemy is ONE and the position is setted in troop. But if it transform itself, the position remain the same.

I've searched trough all yanfly's script but i can't find a notetag, or a command that do this thing.

Can you help me guys? 🙁 Thank you...
Guys? Somebody can help me?... T_T
It's not possible by default, you need either a script call or a plugin for that.

However, you might trick the engine here.
Give the small enemy a picture of the same pixel size like the large one, just with a lot of transparency around it.
Select the position of the small enemy picture in that transparent area by checking where it would have to be when the large transformed enemy gets the same Position as the transparent area of the small enemy picture.
Hi. I understand... but do you know a script or a call for this? I can't do the things you've suggested because the enemy is a sideview battlers just like the actors. (with yanfly script). So they have even the attack animation... I can't do in that way 🙁
Guys please, can you help me with this problem?
give me a second...

edit
try this: EnemyTransformPlus. please note this is quick and dirty and not an official release.

within the database, place the following note tags on the enemy which will supersede the base enemy.
Code:
<transformX:your value here>
<transformY:your value here>

let me know if this works.
Thank you, i'll try it this evening.

But this script permit to transform the scale of the enemy, or reposition the enemy? I don't wanna scale the enemy, i wanna change it's position after the transformation.

However, I'll watch it this evening.
Sorry, wrong post...
give me a second...

edit
try this: EnemyTransformPlus. please note this is quick and dirty and not an official release.

within the database, place the following note tags on the enemy which will supersede the base enemy.
Code:
<transformX:your value here>
<transformY:your value here>

let me know if this works.

Hi dbchest, sorry for the terrible delay... I've tried to use the script, but i receive an error. "this.setHome is not a function".

Do you know why? It's fault of the update 1.6? Can you help me to resolve this problem? 🙁
UP, guys i need help... Is it possible that nobody can help me?
If you're using Yanfly's Battle Engine Core, that simplifies things a lot! Try this as a script call:
Code:
$gameTroop.members()[0].battler().setHome(x, y);
Just replace the x and y with screen coordinates for the battler's anchor (default anchor is at 50% width and 0% height). It worked for me. =)
If you're using Yanfly's Battle Engine Core, that simplifies things a lot! Try this as a script call:
Code:
$gameTroop.members()[0].battler().setHome(x, y);
Just replace the x and y with screen coordinates for the battler's anchor (default anchor is at 50% width and 0% height). It worked for me. =)


IT WORKS!! IT WOOORKS! THANK YOU SOOO MUCH!!!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-move-sideview-enemy-position-during-fight.87387/