poppicha

Villager
Member
Joined
Aug 30, 2015
Messages
20
Reaction score
10
First Language
Thai
Primarily Uses
RMMV
I want to request a plugin that can suddenly flip or set an actor/enemy's angle in battle.
like the picture from the attachment.
**It's not rotate, just flip angle** like a script call to flip picture's angle.
$gameScreen._pictures[id]._angle = Value;
ps.I tried SceneManager._scene._spriteset._actorSprites[BattleManager._subject.index()]._angle = value; but it didn't work..

so I can use a script call to flip it when in battle or action sequence.

My project's battle plugin uses only YEP_BattleEngineCore & YEP_X_AnimatedSVEnemies & YEP_X_ActionSequence 1-3.
No special plugin. Thank you very much.
Battler Angle.png
 
Last edited:

poppicha

Villager
Member
Joined
Aug 30, 2015
Messages
20
Reaction score
10
First Language
Thai
Primarily Uses
RMMV
You can now close this thread. I already solved it myself.
I can set each actor's angle like this.
It's not the best way but it's good for me haha.

JavaScript:
//original angle
    SceneManager._scene._spriteset._actorSprites[x].rotation = 0;
//angle 90 degrees
    SceneManager._scene._spriteset._actorSprites[x].rotation = Math.PI/2;
//angle 180 degrees
    SceneManager._scene._spriteset._actorSprites[x].rotation = Math.PI;
//angle 270 degrees
    SceneManager._scene._spriteset._actorSprites[x].rotation = Math.PI * 1.5;
 

Latest Threads

Latest Profile Posts

Well, I hope things go well tomorrow. I think I might be coming down with a cold, so gonna warm up some chicken soup and sleep.
Status too sad. Pls delete, mods. Thanks.
The most important thing to design your game for is fun. If a game isn't fun, why would anyone want to play it? Well, that and "can you play the game?". Anything else is incidental.
I just realized that I have been on this site for nearly 1/3 of my life...
How awesome is that?! Just in love with those eyes!!
Made by @Kato-A !
Hakuen double size_Kato.png

Forum statistics

Threads
124,676
Messages
1,165,173
Members
163,486
Latest member
Alerxuwu
Top