Script call to move battler on battle?

Magusalfador

Veteran
Veteran
Joined
Jun 15, 2014
Messages
240
Reaction score
41
First Language
English Spanish
Primarily Uses
Hi all!

Can someone help me with the code to move a battler in battle? What I want is to move the battler infront of an enemy. Im asking the code because I know i can use actions sequences¡with the different plug ins but that doesnt achieve what im looking for.

I read that this can move the actor:
Code:
SceneManager._scene._spriteset._actorSprites[X]._homeX
SceneManager._scene._spriteset._actorSprites[X]._homeY

But I need it to move the battler infront of an enemy.

Thanks!!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
SceneManager._scene._spriteset._actorSprites[X]._homeX =
SceneManager._scene._spriteset._enemySprites[X]._homeX +
SceneManager._scene._spriteset._enemySprites[X]._homeX.width
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top