A simulation of FF6 Chupon's "Sneeze" attack

Any help would be appreciated.

In Final Fantasy 6, the enemy Chupon has a "Sneeze" attack that blows a character sprite off screen and removes them from the battle party. From what I recall of the attack, when hit by a big hazy round circle that Chupon "sneezes" out, the targeted sprite flinches back (normal damage reaction) and is then quickly pushed backwards until they're out of sight.

In my project, a particular monster charges forward into the party. A character is selected at random by script to be the target. Ideally they then get knocked backwards off the screen and are out of the fight.

I've so far managed to get the enemy animation down. It's the knockback that I'm having trouble with. I've found where I can move the sprite backwards as seen below -- $gameVariables.value(1) is a common variable I store the randomized actor sprite's ID in:

1712262807518.png


What occurs when I run this is that the character sprite moves backwards, but then springs forward immediately after to their starting position. I've come to the conclusion that ".startMove()" is always going to return the sprite to its home X/Y position. I've tried shifting the ._homeX after the move to see if I can get the sprite to return to a point off screen, but that makes the sprite just vanish -- you don't see any motion at all at that point.

1712263008349.png


Is this knockback possible? I'm trying to learn the Javascript necessary to manipulate the sprites, so I'd prefer if I didn't need a plugin.

Original thread: https://forums.rpgmakerweb.com/threads/a-simulation-of-ff6-chupons-sneeze-attack.167477/