Animated Enemies

Discussion in 'JS Plugin Releases (RMMV)' started by Rexal, Oct 28, 2015.

  1. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    260
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Animated Enemies - v1.15.51 / v1.16.3a
    Rexal
     ​
    Intro - Tired of boring static enemies? Mix it up with some ANIMATED ENEMIES.​
     ​
    [​IMG]
     ​
    What's new:
    - Added the SV Sprite tag which lets you specify the image you want to use, removing the admittedly silly requirement where you had to have a matching sprite.
    - Potentially fixed issues with sprite flipping.​
    - Enemies are no longer synchronized when they breathe or float.​
    - Enemies are able to actually properly equip weapons now.​
    - Enemies without weapons will now be barehanded instead of using the first weapon in the database.​
    - Caused a weird bug with my Visual Equipment plugin where EVERYTHING is flipped, though I'm pretty sure that's not this plugin's fault.​
     ​
     ​
    Github Repository - Here
     ​
    Wiki - Here
     ​
    Previous Stable Release(v1.15)  - Here
     ​
    Latest Release (1.16a) - Here
     ​
    Demo(for all my plugins) - Here
     ​
     ​
    Features
     
    - Works in both Front and Side views.
    - Enemies are animated and can use SV actor sprites.
    - Define what enemy isn't animated.
    - SV Battlers are automatically flipped so they're facing the heroes.
    - SV Battlers obey your hue settings.
    - SV Battlers can use weapons.
    - Static Battlers have a customizable breathing effect.
    - Static Battlers can have floating animation similar to rm2k3.
    - Enemies can be scaled.
     
    Note: Even though it's called SV, it'll still work in the front view. That's just what MV calls that type of battle sprite, so that's what I call it since I don't have a better name for it.
     
     

    Parameters
     
    Debug - Will write to the console if true. This is so that you can see if everything's working correctly.
     
    No Movement - If set to true, this prevents enemies from moving whenever they perform an action. Can potentially be overridden by another plugin.
     
    Enemies Celebrate - If set to true, SV enemies will play their victory animation when you're defeated.
     
    Static Enemies Breathe - If set to true, regular enemies have a breathing effect.
     
    AGI Effects Breathing - If set to true, enemies that have a higher agi stat will breathe faster.
     
    Scale Statics by Distance - If set to true, this will shrink enemies by how far they are from the bottom of the screen.
     
    SV Enemies Collapse - If set to true, SV enemies will always play the default collapse animations.
     
    Damage Slows Down Breathing - If set to true, enemies will breathe slower the more damage they take.
    Note tags

     
    General Enemy Tags
     
     
     Enemy Scale: amount
     
    multiplies the size of the enemy by this amount.
     
     Example: Enemy Scale: 1.5
     
    SV Battler Tags
     
    [sV Animated] - LEGACY
    Makes the enemy use an SV Actor. You must have an image in img/sv_actors that matches the name of the one you used for the enemy in the database!
     SV Sprite: sprite

    Makes the enemy use the specified SV Battler. You do NOT need to have a matching image with this tag.

     [Collapse]
     
    Lets the SV Enemy use collapse animations regardless of parameter settings.
     
     [No Collapse]
     
    Prevents the SV Enemy from using collapse animations regardless of parameter settings.
     
    In other words, if you set the enemy's image to Bat, the sv_actors folder needs to have an image named Bat inside it, otherwise it throws an error.
     
    SV Motion: motion
    Specifies the SV Motion an enemy uses when attacking. If this tag isn't used, it uses thrust.
     
    Example: SV Motion: swing
     
    SV Weapon: id
     Equips the enemy with this weapon.
     
    Example: SV Weapon: 4
     
    Static Battler Tags
     
    [breathless]
    Prevents the enemy from playing the breathing animation.
     
    Breath Control: speedScale,xScale,yScale
     
    Sets the speed of the sine wave(for the breathing effect) and how much it's
      allowed to stretch width-wise and height-wise.
     
    You'll have to play around with the values a bit until it looks right. The
      example below is the default settings.
     
    Example: Breath Control: 50,5,25
     
     [Float]
     Makes enemies have a floating effect similar to rm2k3's.
     
     
     
     
    Future Plans -
     
    - Extend the note tags to allow further customization.- Segmented Battlers

    - Some way or another create a proper hybrid of Sprite_Actor and Sprite_Enemy...
     
     
    Terms of Use - Free for commercial and non-commercial use.
     
     

    Change Log
     




    v1.16a

    - General Improvements.

    - Added the SV Sprite tag which lets you specify the image you want to use.

    - Potentially fixed any issues with sprite flipping.

    - Enemies no longer synchronously breathe.

    - Changed the way weapons are handled to improve compatibility.

        v1.15.5
        -Added some stuff. =m=

    v1.15.3
        -Fixed Some stuff.

    v1.15.1

       -damage popups pop up again.

    v1.15

        -Massive rewrite that should fix a lotta issues.

      v1.12.11
        -Fixed the weapon positions. AGAIN

      v1.12.1 -
        -SV Battlers are now recognized as enemies.
        -Changed the version naming scheme.
        -SV Overlays should face the right way.

    v1.12 -
       - Note tags are no longer case-sensitive.
       - Fixed the positioning officially.
       - Fixed the floating issue.
       - some other thing I forgot about.
     

    v1.11.3 -
       Fixed the weapons.

      v1.11.1 -
       - No comment.

    v1.11 -
       - Fixed the positioning...

    v1.1 - Live and Reloaded
      -Breathing slows down the less hp an enemy has. (orignally they just breathed less)
      - Added an option that lets enemies scale down the further into the background they are.
      - Fixed the weapons!
      - Enemies can celebrate your demise.
      - Fixed the Flash Target bug.
      - SV Enemies can collapse.
      - SV Enemies will properly appear.
      - Enemies have a proper escape animation.
      - Enemies are now properly positioned.
      - You can now scale the enemies however you want.
     - Fixed the mouse clicking completely.
     

     
       v1.08.1 - Exit stage left

     - Floating enemies no longer zip out of the screen if their x position is modified.

    v1.08 - Fixed Breathing
     - The breathing notetags work now! Yay!
     - Added [Float], to make enemies have a floating effect.

    v1.075
     

    - Static enemies breathe now.

    v1.05 Rollback - Yanfly Engine Patch
     

    - Did something stupid and broke everything but it's all good now.
    - Created a separate plugin for yanfly plugin compatibility.
    - Still has the Flash Target bug.

     v1.06 - Yanfly Compatibility Update
     - Makes this more compatible with Yanfly's scripts.
     - Still has the Flash Target bug.


     v1.05b - Many fixes
    - Fixed issue with enemies not playing the right animations when more than one enemy is on the screen.
     - Misc. Fixes that I've forgotten about.
     - Added SV Weapon, which lets you play a weapon animation(currently backwards). This is not yet compatible with my other script: Sprite Weapons Enhanced.
     - Added a param that stops enemies from moving when performing an action for those who don't want that.
     
     v1 - Initial Version

     
     ​
     ​
     ​
     ​
    Make sure the main plugin is named animatedSVEnemies.js, otherwise the parameters won't be read and it won't animate the statics.
     ​
    If you use Yanfly's scripts, use the YEP Animated Side-View Enemies instead.
     ​
     ​
    Due to its nature, I have no idea how compatible this will be with other plugins.
    You'll most likely have to put this at the bottom of the plugin list.
    I'm working on improving compatibility.
     
    Last edited by a moderator: Nov 27, 2015
    #1
  2. djDarkX

    djDarkX Retro & Remastered Music Guru Veteran

    Messages:
    2,699
    Likes Received:
    1,887
    Location:
    Currently unsure...
    First Language:
    Music
    Primarily Uses:
    RMMV
    I'm gonna check to see if this works with Yanfly's Action Sequences (even without a weapon).  If it does, you win the internets.
     
    #2
    Phoenixsylph likes this.
  3. Dainiri.Art

    Dainiri.Art Broken Tablet Mastery Veteran

    Messages:
    169
    Likes Received:
    173
    Location:
    In front of my PC
    First Language:
    English
    Wow I've been waiting for this! Thank you and I will keep an eye for the future updates good luck!

    Question, does this support any size for battlers like how the actors battlers work?
     
    #3
  4. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    260
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Yup.

    [​IMG]
     
    #4
    Dainiri.Art likes this.
  5. Kyonko802

    Kyonko802 Villager Member

    Messages:
    27
    Likes Received:
    10
    First Language:
    English
    Wow that was quick. Cheers!
     
    #5
    ssunlimited likes this.
  6. djDarkX

    djDarkX Retro & Remastered Music Guru Veteran

    Messages:
    2,699
    Likes Received:
    1,887
    Location:
    Currently unsure...
    First Language:
    Music
    Primarily Uses:
    RMMV
    Well, it does in fact use them, but doesn't completely use all the actions.  I only tested with jumping and moving to the designated point (front base) and the enemy did that, but did not jump.  Close.  Still, this is pretty awesome!  Kudos, good sir.
     
    #6
    Chaos17 likes this.
  7. MechaGS

    MechaGS Veteran Veteran

    Messages:
    40
    Likes Received:
    6
    First Language:
    English
    I'm getting the following error, I'd imagine it's because of Yanfly's Battle Scripts.

    TypeError: undefined is not a function at Sprite_EnemyRex.Sprite_Battler.updateSelectionEffect I'm having a look through the JS because I'd like it to work haha.
     
    #7
  8. djDarkX

    djDarkX Retro & Remastered Music Guru Veteran

    Messages:
    2,699
    Likes Received:
    1,887
    Location:
    Currently unsure...
    First Language:
    Music
    Primarily Uses:
    RMMV
    Really?  I'm using the latest updates to Yanfly's plugins and I'm using all the Action Sequences plugins and the Battle Core (not using the AI yet) and it worked without issue. o-o

    Try turning off the Yanlfy plugins and see if that helps any.
     
    #8
  9. Sera

    Sera Veteran Veteran

    Messages:
    80
    Likes Received:
    16
    First Language:
    English
    I've been experimenting with Yanfly's plugins and this one for a few minutes, I get the same error only when Yanfly's Core Engine is turned on. If I turn it off it's fine.
     
    #9
  10. nio kasgami

    nio kasgami VampCat Veteran

    Messages:
    8,600
    Likes Received:
    2,358
    Location:
    Canada / Quebec
    First Language:
    French
    wow it's you setup this in a so prety ways c: ! it's also avoid to much incompatibility from other battle systems

    Sadly the way the System is made ....make almost impossible to create animated enemies without breaking other people battle plugin :/
     
    #10
  11. djDarkX

    djDarkX Retro & Remastered Music Guru Veteran

    Messages:
    2,699
    Likes Received:
    1,887
    Location:
    Currently unsure...
    First Language:
    Music
    Primarily Uses:
    RMMV
    How weird.  I did two tests to see if the Action Sequences were working and I had no issue.  Here's my plugin list:

    [​IMG]

    At the very bottom, I also have TDDP_BindPicturesToMap, so that's the whole list.  I'm gonna see if it gives me that error when I don't use an action sequence.
     
    #11
  12. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    260
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Well, at least it semi-works! :p I'll have a look at Yanfly's script and see what I can do.

    Thanks :D I try to make it as compatible as possible so that people can use whatever scripts they want with it.

    It's looking like you have to put it as far down the list as you can, since I had to overwrite a lot of functions in order for the plugin to work.

    I'll try to make it play nice with Yanfly's Core engine, but we'll see.

    EDIT - It works fine if you set Flash Target in Core's parameters to true. I have no idea why it does, but it does.
     
    Last edited by a moderator: Oct 28, 2015
    #12
    djDarkX likes this.
  13. djDarkX

    djDarkX Retro & Remastered Music Guru Veteran

    Messages:
    2,699
    Likes Received:
    1,887
    Location:
    Currently unsure...
    First Language:
    Music
    Primarily Uses:
    RMMV
    So, I ran more tests.  I placed your script above the Battle Core Engine, but below Core Engine.  No error, but no SV motion if not using an Action Sequence and no damage animation.  Tested again with it above Core Engine.  Same thing.  Kinda surprised everyone else got the error.  Still, good to know you're going to look into it.

    OH, one thing I did notice though.  Can't mouse click enemies using the animated battlers.  I can attack them with the keyboard (and I'm sure the Gamepad), but not the mouse and I clicked everywhere near the enemy.  No go.
     
    #13
  14. Sera

    Sera Veteran Veteran

    Messages:
    80
    Likes Received:
    16
    First Language:
    English
    Since djDarkx can get it working with essentially the same load order as me, I think the solution may lie with one of the additional plugins he has that MechaGS and I don't.

    Probably either SVActorPosition or TDDP_BindPicturesToMap. But if even one person can have both Yanfly and this working together then you shouldn't need to edit this plugin. Either we did something wrong or djDarkX did something right.
     
    #14
  15. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,051
    Likes Received:
    205
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Gonna try this one out because i really want battles to look nice.

    So basically if i want an animated enemy I have to pretty much use the same sheet like the player heroes? do they need to be flipped or does the engine do that automatically?
     
    #15
  16. MechaGS

    MechaGS Veteran Veteran

    Messages:
    40
    Likes Received:
    6
    First Language:
    English
    Just tested it with TDDP_BindPicturesToMap and can confirm that doesn't fix it. Not sure on what SVActorPosition is though, not seen that one.
     
    #16
  17. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    260
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Try setting the "Flash Target" parameter in the Core Engine to true.

    The plugin does it automatically. It'd be way too much of a hassle if you had to do it manually.
     
    #17
  18. Sera

    Sera Veteran Veteran

    Messages:
    80
    Likes Received:
    16
    First Language:
    English
    Oh, that fixed it! I guess djDarkX already had it set by chance?

    Now I'm seeing what he meant when he said that you can no longer click enemies, though. That's a shame. Still going to use the plugin because it's crucial, but I was enjoying the clicking while it lasted.
     
    #18
  19. MechaGS

    MechaGS Veteran Veteran

    Messages:
    40
    Likes Received:
    6
    First Language:
    English
    Fantastic and I'm with Sera on this as it really is a crucial part of what I needed for my game.

    I look forward to your updates!
     
    #19
  20. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    260
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Oh, I didn't even notice that part of djDarkX's post and I don't use the mouse so I didn't even notice that....whoops.

    I'll see what I can do about that.
     
    #20
    djDarkX likes this.

Share This Page