Actor Stepping Animation

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
Actor Stepping Animation

2015.10.21

by Shaz

Introduction

This plugin allows you to have your actors or followers animate while on the map - for example, party members with wings, slimes, etc.

How to use

Add to your plugins folder (file name should be ActorStepAnim.js).  There are no parameters to set or plugin commands to call.

Add <stepanim> to the actor notebox.

Plugin

Download from pastebin

Credit

- Shaz

Terms

- free for use in commercial games

Revisions

2015.10.30 - Fixed TypeError: Cannot read property 'actor' of undefined.
 
Last edited by a moderator:

lazhiral

Villager
Member
Joined
Mar 13, 2013
Messages
25
Reaction score
36
First Language
Portuguese
That's pretty nice, I'll probably be using this! :D Thanks a lot for this plugin!
 

Koru-chan

Veteran
Veteran
Joined
Jul 30, 2012
Messages
43
Reaction score
16
First Language
English
Primarily Uses
RMMV
This is really nice! :D Is there any possible chance of an option to have an actor's image change when idle?  I like the idea of my character sort of bobbing up and down when idle instead of just standing there like a statue.  This is really helpful so far for flying actors, but it would be nice if it could be used to make my ground-bound actors able to breath lol
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
What you're asking for is something different again - you want to change the sprite based on whether they are standing still, walking, and maybe even running.  That is not something I would add to this script - it deserves a plugin of its own.

This one JUST keeps the stepping animation on for those characters you want to animate whether they're standing or moving.
 
Last edited by a moderator:

Nimbus

Veteran
Veteran
Joined
Jun 30, 2014
Messages
56
Reaction score
12
First Language
English
Primarily Uses
Huh... this one is giving me an error upong starting or loading a game:

TypeError: Cannot read property 'actor' of undefined.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
I am going to guess that you cleared actor details but didn't remove them from the party lineup on the system tab.
 
Last edited by a moderator:

Joronjo

Veteran
Veteran
Joined
Sep 17, 2015
Messages
155
Reaction score
29
First Language
English Spanish
Primarily Uses
I made a gif of what the plugin actually does so things are a little clearer:

Its main purpose is mostly to have your actors a little more animated. Its not really and "idle animation" script per se.
 
Last edited by a moderator:

Calana

Warper
Member
Joined
Oct 26, 2015
Messages
2
Reaction score
0
First Language
German
Hi! I'm running into the same error as Nimbus.

TypeError: Cannot read property 'actor' of undefined.

I did clear out the default actors in my project and changed the starting party to only include the new actor. I can't see any other entries regarding parties that I should change.

On a new project the plugin works right off the bat. I'm not sure if this is a compatibility issue with other plugins or if I forgot to clear out the default actors from some other entries.

e: I did some testing and even if I load up a new project without changing any assets, as soon as I lower the starting party size to less than 4 the game will produce the error above. It also happens if I try to change the party size via an event.
 
Last edited by a moderator:

RobertMato

Warper
Member
Joined
Oct 26, 2015
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
This is great, but are there any plans to make this toggleable in-game?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
If anyone has the error message, I'd really appreciate if you could zip up your project and send to me so I can take a look at it?  I just can't reproduce the error myself.  If you only have pure default resources, I only need the contents of your Data folder.  Also a list of what plugins you have installed.

@RobertMato, how would you want that implemented?  Just turn it on/off globally, or be able to turn it on/off per actor, so you could have one that pauses the animation for a while, but another would continue?
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
321
Reaction score
177
First Language
English
Primarily Uses
RMMV
for example, party members with wings, slimes, etc.
... Iiiinteresting couple of examples... >_>  Coincidence...?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
Why?  They're the first ones that came to mind where you might always want them to animate, even when standing still.  I could think of others, but they're not in the default sprites, so ...
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
321
Reaction score
177
First Language
English
Primarily Uses
RMMV
Okay. Never mind then.
 

fm2107

Veteran
Veteran
Joined
Jun 12, 2014
Messages
77
Reaction score
19
First Language
english
If anyone has the error message, I'd really appreciate if you could zip up your project and send to me so I can take a look at it?  I just can't reproduce the error myself.  If you only have pure default resources, I only need the contents of your Data folder.  Also a list of what plugins you have installed.

@RobertMato, how would you want that implemented?  Just turn it on/off globally, or be able to turn it on/off per actor, so you could have one that pauses the animation for a while, but another would continue?
how would i be able to send you the project? 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
If you can zip it up and load it online somewhere (dropbox is good, and popular nowadays) you can just PM me the link.

Thanks so much for your help :)
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
321
Reaction score
177
First Language
English
Primarily Uses
RMMV
You need to put "if ($gameParty.leader())" into the first function and "if (this.actor())" into the second, in both cases just before the lines that use those. Those can both be undefined upon starting a new game.
 

Calana

Warper
Member
Joined
Oct 26, 2015
Messages
2
Reaction score
0
First Language
German
I tried HeroicJay's solution and while it gets rid of the error message, it also seems to prevent the stepping animation from running at all. Even with a full party the stepping animations won't go off until I remove those two lines again.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,956
Reaction score
13,588
First Language
English
Primarily Uses
RMMV
Thank you Calana for your project so I could play around.

I have fixed the issue (HeroicJay got it right), and the pastebin from the first post has been updated.

Thanks to everyone for reporting the error, and for being patient while waiting for a fix.
 

Mellye

Veteran
Veteran
Joined
Oct 24, 2015
Messages
347
Reaction score
279
First Language
Portuguese
This is really handy for Actors that are flying characters.

With this, they can be constantly flapping their wings, instead of standing still in mid-air.
 

kangtaw

Warper
Member
Joined
Oct 25, 2015
Messages
2
Reaction score
0
First Language
English
It doesn't work for me either ....

I tried HeroicJay's solution and while it gets rid of the error message, it also seems to prevent the stepping animation from running at all. Even with a full party the stepping animations won't go off until I remove those two lines again.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Demo for Maze of the Lost MZ released. I would appreciate any and all feedback and constructive criticism. If you like Dungeon Crawlers and JRPG's with a hint of Metroidvania and Shadowgate/Uninvited you might like it. https://forums.rpgmakerweb.com/index.php?threads/maze-of-the-lost-mz-demo-port-from-mv.127971/
Well, here it is, colored. :kaoslp:

Forum statistics

Threads
103,388
Messages
998,954
Members
134,906
Latest member
Sikey
Top