move the enemy during the battle

AleatoryNerd

Villager
Member
Joined
Jul 15, 2022
Messages
13
Reaction score
3
First Language
Portuguese
Primarily Uses
RMMV
I would like to make an animation of the enemy being moved off-screen.

Is it possible through some command or plugin to move the enemy during the battle?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,601
Reaction score
3,663
First Language
English
Primarily Uses
RMMV
Which engine are you using? Your profile says you use MV, but you posted in the MZ forum.

If it's for a specific enemy, you could simply make an actual animation out of it in the animation editor.

If it's for a skill that could be used on any enemy, it would be more efficient to use Action Sequences. For MV, you'd use Yanfly's Action Sequences, for MZ that's in VisuStella's Battle Core.
 

coyotecraft

Mythographer
Veteran
Joined
Mar 13, 2012
Messages
375
Reaction score
208
First Language
English
Primarily Uses
N/A
You can use this script command
BattleManager._spriteset._enemySprites[0].startMove(-150,60,60)

[0] is the enemy index, the first enemy is 0, the second is 1....
The startMove function(X, Y, Duration) is relative to the battler's home point. It's starting point. So -150 is moving it to the left on the X axis away from the home point. Using -150 again won't move any further because it's already at that point -150 pixels away from the homepoint
 

Latest Threads

Latest Posts

Latest Profile Posts

New sprites & animations for Mint and Beri are coming along!
Guh-Colorbound.gif
ScreenShot_10_5_2022_4_44_8.png
Mad O' Malley... a stick figure that's afraid of it's existence being erased. so they always start battle in an anxious state.
Before, I was drawing all the sprite work, super big and shrinking it down. Which was really time consuming if thing's changed. So instead I'm drawing the characters sketch, and then remaking it with pixel art instead.
Why are job interviews so terrifying. :kaodes:

Forum statistics

Threads
125,801
Messages
1,173,664
Members
164,964
Latest member
oliveleaf
Top