Show animation in script

Latefallen

90% of the time, my code works 100% of the time
Veteran
Joined
Jul 26, 2018
Messages
53
Reaction score
29
First Language
English
Primarily Uses
RMVXA
Hi all!
Apologies if this is the wrong board to post this.
I'm looking for the code required to play an animation on the player (as the event command would do)
Thank you!
 

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
471
Reaction score
316
First Language
Polish
Primarily Uses
RMMV
$gamePlayer.requestAnimation(id); this.setWaitMode('animation');
 

Latefallen

90% of the time, my code works 100% of the time
Veteran
Joined
Jul 26, 2018
Messages
53
Reaction score
29
First Language
English
Primarily Uses
RMVXA
$gamePlayer.requestAnimation(id); this.setWaitMode('animation');
I can't seem to get this working, I get errors. But I'll persist and try to see where it's going wrong.
Thank you!
 

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
471
Reaction score
316
First Language
Polish
Primarily Uses
RMMV
ID is the ID of animation, rest should stay the same I think.
 

Latefallen

90% of the time, my code works 100% of the time
Veteran
Joined
Jul 26, 2018
Messages
53
Reaction score
29
First Language
English
Primarily Uses
RMVXA
ID is the ID of animation, rest should stay the same I think.
Yeah, I got that. I think perhaps the other scripts I'm using are interfering with it.
 

Ebanyle

açspasl~d~dfflass
Veteran
Joined
Sep 2, 2016
Messages
330
Reaction score
187
First Language
Portuguese
Primarily Uses
RMVXA
That's because this code is for MV.
VXAce one is this:
Ruby:
$game_player.animation_id = n              # For Player
$game_map.events[eventid].animation_id = n # For Events
 

Latefallen

90% of the time, my code works 100% of the time
Veteran
Joined
Jul 26, 2018
Messages
53
Reaction score
29
First Language
English
Primarily Uses
RMVXA
That's because this code is for MV.
VXAce one is this:
Ruby:
$game_player.animation_id = n              # For Player
$game_map.events[eventid].animation_id = n # For Events
Ah that's great, thank you!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Caught a guy trying to break into our house today. Appearantly he intended to burgle our neighbor (a 94yo widow) but picked the wrong house. Faced with two angry males he was quick to give up without a fight...
I just joined the club of nerds making their own Excel-Sheets to calculate HP / MP / EXP.. parameter curves
Me: "Finally finished most of my game backlog. Probably time to do some gamedev" | Steam: *offer sales*
If I recorded while I created (what I think is) a small plugin, would you be interested enough in the process to watch it?
I keep trying to explain to clients that the huddle masses behind the old K-Mart are a Fallout Reenactment group. Somehow I don't think they believe me. :LZSskeptic:

Forum statistics

Threads
94,595
Messages
922,183
Members
124,469
Latest member
jfhkjsdhfkjsdfhk
Top