manck

Veteran
Veteran
Joined
Aug 25, 2018
Messages
64
Reaction score
4
First Language
English
Primarily Uses
RMMV
There is play animation on "Player" option,
But no "actor" option.

Is there a way to play animation on a specific actor?

Any help is appreciated
 

Autofire

PICNIC Solver
Veteran
Joined
Aug 4, 2017
Messages
50
Reaction score
23
First Language
English
Primarily Uses
RMMV
Doing this without plugins (or scripting) requires hiding the party members and then using events to stand in for the party, since you cannot do things directly to the party.

If you're making a cutscene, the easiest way to do this is to fade out the screen, turn off player followers, and move around the events the way you want them (and with the graphics you want). Then you fade the screen back in and do whatever you want. Once you're done, fade out, clean up the events, turn followers back on, and fade in.

Or you could try Karberus's Simple Follower Control. This allows you to play balloon animations on followers, if that's what you're looking for.
 

OS87

Warper
Member
Joined
May 11, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
Using the Script option, paste in:
Code:
$gameMap._events[ID].requestAnimation(N)
Where ID = the ID of the event you want the animation to play on, and
N = the number of the animation you want to use.

For example:
Code:
$gameMap._events[2].requestAnimation(15)
Plays animation 15 on event 2.

Limitations:
It'll only play the last animation you request in any one frame, so if you need to play a few animations at once, put a 1 frame wait between them.

Hope this helps!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,727
Reaction score
8,509
First Language
German
Primarily Uses
RMMV
@OS87 the problem is not to play the animation on an event (that can be done even with event commands), the problem is to play the animation on an actor/follower.
 

OS87

Warper
Member
Joined
May 11, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
Ah, thanks for clarifying, I'd assumed 'actor' in this case meant npc, meant event :D
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,145
First Language
English
Primarily Uses
RMMV
To play an animation on a follower, it should be similar (the requestAnimation function is available on all Game_CharacterBase)

Code:
EDIT: This is incorrect: $gamePlayer.followers()[1].requestAnimation(15)

EDIT: This is the correct call:
Code:
$gamePlayer.followers().follower(1).requestAnimation(15);
 
Last edited:

manck

Veteran
Veteran
Joined
Aug 25, 2018
Messages
64
Reaction score
4
First Language
English
Primarily Uses
RMMV
To play an animation on a follower, it should be similar (the requestAnimation function is available on all Game_CharacterBase)

Code:
$gamePlayer.followers()[1].requestAnimation(15)
I got this error
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,145
First Language
English
Primarily Uses
RMMV
My bad it's slightly different:

Code:
$gamePlayer.followers().follower(1).requestAnimation(15);
 

manck

Veteran
Veteran
Joined
Aug 25, 2018
Messages
64
Reaction score
4
First Language
English
Primarily Uses
RMMV
My bad it's slightly different:

Code:
$gamePlayer.followers().follower(1).requestAnimation(15);
Thanks is it possible to do name instead of id
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,727
Reaction score
8,509
First Language
German
Primarily Uses
RMMV
no, not really.
everything on the computer is ID-Based.
theoretically you could make a loop that checks the names of all actors and on the correct name then uses that actors ID - but it would require the ID for the use of the function. And a loop like that can't be done in a single script line.
 

Latest Threads

Latest Posts

Latest Profile Posts

headshot_headshot.jpg
The theory has been proved. Based on an invisible image's data(the big red dot in the previous image), RM can identify different parts of an enemy and do something respectively. :kaojoy:
Ok.. coding what should be a simple "everyone is petrified and therefore dead, now go to game over screen" shouldn't involve needing to become Dr. J and dunking from the free throw line(my way of saying "jumping through hoops").
Hmmmm... how many xrays til I get super powers?
..of the major old school series that began in the 80s- early 90s, I still haven't beaten 'a' Zelda game. Mario 64 was the first Mario I've beaten. I don't know if I should give that honor to Link to the Past or A Link Between Worlds(I currently own both). Well technically I've haven't beaten a Sonic either (Game Genie doesn't count =P).
headshot_headinfo.jpg
Time to add the "headshot" concept into the game so that people may actually aim at the heads when shooting zombies and get massive damage and armor-pen bonus as rewards. :kaojoy:
(The red area is just for visually debug purposes right now. But, it's possible that I will add something that displays the weak spots of enemies in the future.)

Forum statistics

Threads
115,381
Messages
1,089,422
Members
150,098
Latest member
Lilyhia
Top