Actor Stepping Animation

Discussion in 'JS Plugin Releases (RMMV)' started by Shaz, Oct 24, 2015.

  1. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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: Oct 30, 2015
    #1
    Harken_W, Dr.Yami, FM77 and 10 others like this.
  2. lazhiral

    lazhiral Villager Member

    Messages:
    25
    Likes Received:
    31
    Location:
    Brazil
    First Language:
    Portuguese
    That's pretty nice, I'll probably be using this! :D Thanks a lot for this plugin!
     
    #2
  3. Koru-chan

    Koru-chan Veteran Veteran

    Messages:
    30
    Likes Received:
    5
    Location:
    Florida
    First Language:
    English
    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
     
    #3
  4. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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: Oct 25, 2015
    #4
  5. Nimbus

    Nimbus Veteran Veteran

    Messages:
    48
    Likes Received:
    9
    Location:
    Ohio
    First Language:
    English
    Huh... this one is giving me an error upong starting or loading a game:

    TypeError: Cannot read property 'actor' of undefined.
     
    #5
  6. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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: Oct 25, 2015
    #6
  7. Joronjo

    Joronjo Veteran Veteran

    Messages:
    155
    Likes Received:
    29
    First Language:
    English Spanish
    I made a gif of what the plugin actually does so things are a little clearer:

    [​IMG]
    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: Oct 26, 2015
    #7
  8. Calana

    Calana Warper Member

    Messages:
    2
    Likes Received:
    0
    Location:
    Austria
    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: Oct 27, 2015
    #8
  9. RobertMato

    RobertMato Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    This is great, but are there any plans to make this toggleable in-game?
     
    #9
  10. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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?
     
    #10
  11. HeroicJay

    HeroicJay Veteran Veteran

    Messages:
    294
    Likes Received:
    167
    First Language:
    English
    Primarily Uses:
    RMMV
    ... Iiiinteresting couple of examples... >_>  Coincidence...?
     
    #11
  12. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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 ...
     
    #12
  13. HeroicJay

    HeroicJay Veteran Veteran

    Messages:
    294
    Likes Received:
    167
    First Language:
    English
    Primarily Uses:
    RMMV
    Okay. Never mind then.
     
    #13
  14. fm2107

    fm2107 Veteran Veteran

    Messages:
    77
    Likes Received:
    19
    First Language:
    english
    how would i be able to send you the project? 
     
    #14
  15. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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 :)
     
    #15
  16. HeroicJay

    HeroicJay Veteran Veteran

    Messages:
    294
    Likes Received:
    167
    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.
     
    #16
  17. Calana

    Calana Warper Member

    Messages:
    2
    Likes Received:
    0
    Location:
    Austria
    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.
     
    #17
  18. Shaz

    Shaz Veteran Veteran

    Messages:
    35,817
    Likes Received:
    10,118
    Location:
    Australia
    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.
     
    #18
  19. Mellye

    Mellye Veteran Veteran

    Messages:
    347
    Likes Received:
    277
    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.
     
    #19
  20. kangtaw

    kangtaw Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    It doesn't work for me either ....

     
    #20

Share This Page