MV Anyone else get Altimit Character Animations to work?


This sounds like a really powerful plugin in conjunction with Altimit Pixel Movement, but it seems like development and documentation has stopped. Going off of the usage detailed in the post, and a demo provided by @Esh , I got far enough to write this XML file here:

<animation-list sheet="%jared_extra"> <animation id="walk_NE" rate="10"> <frame x="240" y="330" width="80" height="110" /> <frame x="320" y="330" width="80" height="110" /> <frame x="400" y="330" width="80" height="110" /> </animation> <animation id="walk_NW" rate="10"> <frame x="240" y="110" width="80" height="110" /> <frame x="320" y="110" width="80" height="110" /> <frame x="400" y="110" width="80" height="110" /> </animation> <animation id="walk_SE" rate="10"> <frame x="240" y="220" width="80" height="110" /> <frame x="320" y="220" width="80" height="110" /> <frame x="400" y="220" width="80" height="110" /> </animation> <animation id="walk_SW" rate="10"> <frame x="240" y="0" width="80" height="110" /> <frame x="320" y="0" width="80" height="110" /> <frame x="400" y="0" width="80" height="110" /> </animation> </animation-list> <script> switch ( $params.direction8 ) { case 9: return { animation: "walk_NE" }; break; case 7: return { animation: "walk_NW" }; break; case 3: return { animation: "walk_SE" }; break; case 1: return { animation: "walk_SW" }; break; } </script>

This is just to get diagonal animations working. Very simple. The file is named "%jared.xml", as the spritesheet the actor uses is named "%jared.png", while the spritesheet used for diagonal sprites is named "%jared_extra.png". All 3 files are inside img/characters, the plugin is turned on, and I've tried placing it above scripts and below scripts, yet nothing works.

The most I've gotten is a glitched up looking sprite, which looks like an idle sprite cut in half, SOMETIMES when I press the keys to move diagonally very precisely. I thought maybe I just plugged in the X and Y coordinates on the animations wrong, but the glitched sprite isn't even animating at all, it just displays that single glitched frame. And I've double checked the coordinates to be correct.

The only other thing I have to go off of is the fact that Visual Studio gives me an error "XML document cannot contain multiple root level elements" on the line with the inserted javascript. Which doesn't mean much, considering it's mandatory. So I'm not really sure what else to try. Has anyone else gotten this to work, and can maybe give some clues as to what's going wrong?
I have not used the plugin, but just a few thoughts for you.

The file is named "%jared.xml", as the spritesheet the actor uses is named "%jared.png", while the spritesheet used for diagonal sprites is named "%jared_extra.png".
This is not a great idea. Since MV is HTML-based, and % is a special character in HTML filepaths, you shouldn't be using it in your filenames. Even if it works okay during your testing, it might break on other people's systems when you get to playtesting or sale.

Best to stick to Web-legal filenames.

Code:
<script>
switch ( $params.direction8 ) {
    case 9:  return { animation: "walk_NE" };        break;
    case 7:  return { animation: "walk_NW" };     break;
    case 3:  return { animation: "walk_SE" };        break;
    case 1:  return { animation: "walk_SW" };        break;
}
</script>
There's no point to all of those break statements. "return" immediately ends all further processing of code in that function, so they'll never be seen to break out of those switch cases.

I thought maybe I just plugged in the X and Y coordinates on the animations wrong, but the glitched sprite isn't even moving at all, and I've double checked the coordinates to be correct.
So this sounds like at least one problem is potentially not related to the animations plugin. Does the pixel movement plugin work correctly with diagonal movement when the animation plugin is turned off? Displaying the correct animation should have nothing to do with the actual movement functioning.

Have you looked at any other options? There are other plugins to handle 8-directional movement/sprites that are both more recent and better supported.
I have not used the plugin, but just a few thoughts for you.


This is not a great idea. Since MV is HTML-based, and % is a special character in HTML filepaths, you shouldn't be using it in your filenames. Even if it works okay during your testing, it might break on other people's systems when you get to playtesting or sale.

Best to stick to Web-legal filenames.


There's no point to all of those break statements. "return" immediately ends all further processing of code in that function, so they'll never be seen to break out of those switch cases.


So this sounds like at least one problem is potentially not related to the animations plugin. Does the pixel movement plugin work correctly with diagonal movement when the animation plugin is turned off? Displaying the correct animation should have nothing to do with the actual movement functioning.

Have you looked at any other options? There are other plugins to handle 8-directional movement/sprites that are both more recent and better supported.
Sorry, for that last part I should've clarified, the glitched sprite itself isn't animating. That's what I meant by "isn't moving". The character itself still moves. I figure if the X and Y coordinates were the problem, then the glitched sprite should still be going through different frames, since all of them have different coordinates, and nothing is signifying it being idle. Yet it only show's one glitched frame.

And yeah, the VictorEngine diagonal movement works well except for the minor gripe that when using a joystick, diagonal sprites don't show up. Altimit Character Animations fixes this, going off of the demo provided in the thread, and it also works to serve for adding character sprites for many different statuses and states. And I believe it may also give diagonal sprites to following companion on top of that. So it's a little more than a diagonal sprite plugin, and if preferable I'd like to use it.

Original thread: https://forums.rpgmakerweb.com/threads/anyone-else-get-altimit-character-animations-to-work.152510/