Jittering sideview enemy when using multiple frames

I really had no idea where to post this, I apologize if this is in the wrong forums but I have a really big problem with a custom sideview battler of mine. I'm using Yami's multiple frames for sideview battlers and it has worked well for other player characters but this monster is giving problems.

prob.png


This is a character that I took the loop comand off to show the neutral pose. As you can see her position is completely off and if loop is ticked she's "jittering" all over the place unlike the actors who are laid out in the exact same way. Me and artist have been trying to get this working and I can't figure out what's going on. We tried to lay out everything to 48x48 squares as well to make sure there were as many squares for each pose but that didn't seem to help. I've tried everything from changing the canvas size to filling dummy slots to trying to claim her sprite size being different sizes but it always comes off garbled. I also tried to crop the 4th frames away to make sure it'd be only 3 frames but that didn't work either.

Other characters done in this exact same way have all worked fine, so it's not like we don't know how to do said character. What's going on? What are we missing?
If a sprite jitters, then it's most likely that the picture of the sprite has the wrong structure - I suggest you attach it here so that we can check.
(sprites are never bound by size in any RM, they're bound by structure - a 47x47 sprite can work as well as a 49x49 pixel one as long at the structure is correct - there is absolutely no need to conform to 48x48 unless you want it in the mapgrid, which isn't even there for battles)
the resolution of the sheet shouldn't be the problem, IF the plugin accounts for size / number of frames as opposed to a fixed resolution.
so, you should have a perfect fit regardless of the size of the character, provided each frame of each pose is centered, and each sheet has the correct number of poses, and frames.

something is probably messing with the origin of coordinates for either the source rectangle, or the battler's position on screen, or the origin of the viewport (if used) assigned to display the character.
if those coordinates are tied to the size of the sheet and number of frames, and they check out, then.... no idea.
if they're wrong for one character, they should be wrong for all characters.

I'd risk saying that the plugin is accounting for the fact that <no-loop> implies <single image>, or <image with lesser frames per single pose than image with multiple looping poses>
in any case,... check the plugin, or whatever modification you've made.
If a sprite jitters, then it's most likely that the picture of the sprite has the wrong structure - I suggest you attach it here so that we can check.
(sprites are never bound by size in any RM, they're bound by structure - a 47x47 sprite can work as well as a 49x49 pixel one as long at the structure is correct - there is absolutely no need to conform to 48x48 unless you want it in the mapgrid, which isn't even there for battles)

I was hesitant but I guess I have no choice.
Moe Sheet.png
Please give a linkt to the plugin you're using for the sideview enemy, and the configuration that you gave it.
Because it looks like you configured it wrong, but I can't tell without seeing the plugin descriptions, the sheet you gave seems to be correct (based on a 144x144 pixel cell)
Please give a linkt to the plugin you're using for the sideview enemy, and the configuration that you gave it.
Because it looks like you configured it wrong, but I can't tell without seeing the plugin descriptions, the sheet you gave seems to be correct (based on a 144x144 pixel cell)

https://github.com/suppayami/yami-e.../build/SideviewBattler/YED_SideviewBattler.js


<Sideview Battler Size: 120, 112>

<Siddeview Battler Frames: 4>

<Sideview Battler Speed: 10>

I made invidual frames have 3 though or less when needed.
Do you see the problem?
the sheet you gave seems to be correct (based on a 144x144 pixel cell)
<Sideview Battler Size: 120, 112>

Why did you write that the battler has a size of 120x112 if you made the battlersheet based on 144x144 pixel cells?
Do you see the problem?



Why did you write that the battler has a size of 120x112 if you made the battlersheet based on 144x144 pixel cells?

Artist told me her actual sprite size is 120x112, as I said I played with various sizes to try and get it to work. Besides, if I put it to 144x144 this happens.

Moe.png
If you can't change the origin to the middle (to stop it moving over), then you'll need to reformat the spritesheet so the sprites DO take up that space, and there isn't a heap of whitespace around them.
Your spritesheet has cells that are based on 144x144 pixels each - just open it in a program like photosho and make a 72x72 grid (half the size of the cell) and you'll see that each of the cells and each of the battlers inside the cell are centered on that grid - and THAT is what determines the cell size - the distance between the battlers, not how many of those pixels the battler really uses.

If you want the sprites to use a 120x112 cell instead, you need to resize the spritesheet to 480x1008 (4 frames with 120 each, and 9 rows with 112 pixel each) instead of 576x1296 as it is now, and reposition the sprites as needed in that new grid.
As Shaz said above, you cannot have unused space on a spritesheet, it always needs to be exactly cell-size x cell-number for total size.
As Shaz said above, you cannot have unused space on a spritesheet, it always needs to be exactly cell-size x cell-number for total size.
you can, if you account for it.
what you can't have is misaligned sprites that bleed into neighboring cells.

with that sheet, the battler sprite might *blink*, when it goes for 4 frames of which only 3 are drawn, but it shouldn't *jitter* as in misframing content when it goes for 3 frames when the full range is actually 4
you can, if you account for it.
what you can't have is misaligned sprites that bleed into neighboring cells.

with that sheet, the battler sprite might *blink*, when it goes for 4 frames of which only 3 are drawn, but it shouldn't *jitter* as in misframing content when it goes for 3 frames when the full range is actually 4

This shouldn't be an issue. I can set invidiual poses to have certain number of frames when needed, my battler charaset had 1 frame for defense and that never caused issues.
Apparently, Yami's plugin stopped working for enemies on projects that use the js files from newer versions of MV (see this thread for details). @ashikai has a fixed version, you can ask them if they would share it - or try this plugin by DreamX instead (I haven't used it, just saw on the thread that it should work with Yanfly's Animated Sideview Enemies).
I have been summoned!
Fogomax fixed the plugin for me, so thanks should be sent his way! But here's a link to the fixed file on my google drive: https://drive.google.com/open?id=0B0btfQIoP2cWa2xUZ0NybmFWMWM
Lemme know how that works. 🙂
I have been summoned!
Fogomax fixed the plugin for me, so thanks should be sent his way! But here's a link to the fixed file on my google drive: https://drive.google.com/open?id=0B0btfQIoP2cWa2xUZ0NybmFWMWM
Lemme know how that works. 🙂

It works! You saved so much headache thank you!!!!!
It works! You saved so much headache thank you!!!!!
You're welcome! 😀
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/jittering-sideview-enemy-when-using-multiple-frames.78442/