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,571
Reaction score
3,635
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 Profile Posts

DamageEvil_6.png added!
index.php

Sometimes I wonder why I still try and recruit others to help with my games. It never works.
ScreenShot_10_3_2022_4_27_17.png
welp, thanks to Luna MV, I was able to add the Balloon as a window... thus allowing me to edit the font color and outline... so now it looks like comic bubbles above characters. I have NO idea why I couldn't get this to work through more conventional means, but here we are.
CUTE CUTE CUTE.gif
I cannot cease doing cute art
War and Wonder is a 100% choice-based open-world visual novel.
1664821313732.png
1664821466359.png
1664821547746.png

Forum statistics

Threads
125,760
Messages
1,173,285
Members
164,917
Latest member
meshowz
Top