Picture "breath" animation in big maps

Hi! I was thinking of using the enemy battlers as the graphic for events. The problem is that i also want to make the enemy "breath" and in big maps it doesn't work because i must

select the X and Y of the animation (that in the case are the X and Y of the event in the screen) and that causes the picture to move together with the screen for the animation time :/

The best i could do was to make many animations with small values, but it is not good :/

there is also the script call:

$gameScreen.movePicture(pictureId, origin, x, y, scaleX,scaleY, opacity, blendMode, duration)

but i don't have many knowledge on javascript, is there a way for it to ignore the x and y?

Any kind soul can help me?
You speak from event graphics and pictures, which of those are you using? For a simple animated image strip, you can try using the Gif plugin from my signature (no script calls needed).
You speak from event graphics and pictures, which of those are you using? For a simple animated image strip, you can try using the Gif plugin from my signature (no script calls needed).
it's the enemy battler i'm trying to use (img\enemies), i use a parallel event to get the position X and Y from it (in the screen), then i use the command to show image at those coordenates. Everything is fine here, but i can't use a event to animate the picture if the character is in a big map because the variables are not atualizated while doing the animation so the picture will move together with the screen for a while then try to move to where it was suposed to be(i wanted to do a breath animation changing the Y size of the image).

Now that i think about it maybe i can do it if i find the function to find the screen coordenates of a object and use a script call to animate the object (i don't have much knowledge in javascript so if you know how to do that plz tell me <3)

EDIT: That gif script sounds usefull, wish i had good skills with graphics making to use it well (i'll try it later when i have my maps ready). I also could use it to solve my problem but i would have to use external programs everytime to create the gifs :/
Wouldn't it be a lot easier to create a charset with the given image and use that for the event, instead of trying to sync event and picture positions?
Wouldn't it be a lot easier to create a charset with the given image and use that for the event, instead of trying to sync event and picture positions?
I Can change pictures size and do custom animations with it and all that on the RPG Maker, and the animation is much more smooth.

For example, i can take the battler of a rat and put it in a dungeon with the breath animation and then when it detects the player it will do a different animation (like a big breath or a jump) and will start battle.

Another example is a mutation animation, like changing the rat size and color as a wish. (make it grow, shine, then i change the picture for example)

You can even make a image with a part of the map that you want to fade out for example. Like a illusion wall.

All that is easy to do, but when on big maps everything gets out of place.

So yeah, i can do charset, but i'v way more control over a picture and for me is way more easy to use pictures than to use a external program to make charsets and adjust it in a way i will be able to select the area i want on it. Expecially since i don't have much experience/skills with creating charsets 🙁
Try to use centered coordinates instead of origin coordinates, that should solve the problem.
Try to use centered coordinates instead of origin coordinates, that should solve the problem.
The object teleports to the event position now instead of doing a animation to it, but it's still the same problem

EDIT 2: sorry i missundertood what you said, but anyway, if i use that it will stay in a fixed point of the screen since it uses screen coordenates and not map coordenates

EDIT: i managed to make this script run without errors, but it does nothing 🙁

Just leaving it here in case someone manages to do something with it or find what i did wrong.

$gameScreen.showPicture("Rat", 1, 1, 10, 10, 100, 100, 100, 0);$gameScreen._pictures["Rat"].scaleY(150);i tried using the ID of the image too, but it returned undefined

Original thread: https://forums.rpgmakerweb.com/threads/picture-breath-animation-in-big-maps.54817/