Show Battle Animation on Actor

LawrenceindaSky

Veteran
Veteran
Joined
Apr 21, 2016
Messages
62
Reaction score
4
First Language
English
Primarily Uses
N/A
So I've fallen into another issue, I can't seem to figure out how to show a Animation during a Battle on a Actor. I've tried using "Force Battle Animation" but it's for Enemies only. I only want to show animation for a specific scene in my game. Is there a script call I can do?
(Sorry for asking so many questions, I've been asking a lot recently.)
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
361
Reaction score
186
First Language
English
Primarily Uses
RMMV
Here's a line I found in the rpg_objects file.

Code:
Game_Battler.prototype.startAnimation = function(animationId, mirror, delay)
I haven't used/tested it but I would think you could use with one of these.

Code:
$gameActors.actor(id).startAnimation(animationId, mirror, delay)
$gameParty.members()[index].startAnimation(animationId, mirror, delay)
Where:
id = actor's ID
index = actors position in the party (start counting from 0).
animationId = the animations ID
mirror = true or false
delay = number, I'm unsure if this is in frames or ms.
 
Joined
Jul 25, 2019
Messages
20
Reaction score
2
First Language
English
Primarily Uses
RMMV
Has this worked for anyone? Im having the same problem. Thanks! :cutesmile:

Also, as im new to rpg maker, how exactly do you use this? Thanks again!
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
361
Reaction score
186
First Language
English
Primarily Uses
RMMV
To use this you'll need to set up an event, either on the map, as a common event in the database, or on a troop in the database. Once in the event add a new script command.

upload_2019-10-1_19-35-29.png

Paste one of the codes provided in my previous post and replace any relevant values (eg. replace id with a number), the final code should look something like this

upload_2019-10-1_19-38-39.png

Once this runs it will play animation 1 on the first member of the party.
 
Joined
Jul 25, 2019
Messages
20
Reaction score
2
First Language
English
Primarily Uses
RMMV
Thanks so much! This cleared up a lot. :cutesmile: Your plugins are fantastic btw!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Damian Floyd increased the grand prize for the Driftwood Jam to a $75 steam GC!!! Thank you Damion! :)
Is everybody using their imagination?
5th Annual Driftwood Jam! $25 Steam gift card grand prize :D https://itch.io/jam/5adj
The character designer for my game is using my character for her class work lol :smile:
Why the frick frack snick snack is Pokemon Black & White so expensive now?! $99 on Amazon? $9999 ON EBAY!? WHAT?!

Forum statistics

Threads
94,416
Messages
920,807
Members
124,214
Latest member
Wildric
Top