XML file to change character sprite not working (Altimit Character Animation)

Discussion in 'Javascript/Plugin Support' started by Arend Galenkamp, Apr 4, 2019.

  1. Arend Galenkamp

    Arend Galenkamp I DO STUFF Veteran

    Messages:
    235
    Likes Received:
    107
    Location:
    The Netherlands
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    So I made an XML file for the plugin to read, but it ain't working; and I have no idea why.

    The character image is a normal size image without the "$". All images in the image are 48x48p. The extra frames (diagonal) are under the original frames (up/down/lef/right). The total resolution of the complete image is 576 pixels wide and 384px tall. The characters are listed 3 x 48 wide, and 8 x 48 tall (8x48=384).

    The original file is called "YouFemale", which is used as the players' character in MV.
    I made a copy of that copy called "YouFemaleExtra", which is used in the XML file.

    This is what I have inside the XML file which is inside the images/characters folder, the same folder as the 2 images I mentioned above:
    <set tag="standing" sheet="YouFemaleExtra">
    <!-- Standing state uses YouFemaleExtra.png -->
    <animation direction="down_left">
    <frame x="48" y="240" width="48" height="48" />
    </animation>
    <animation direction="up_left">
    <frame x="48" y="336" width="48" height="48" />
    </animation>
    <animation direction="up_right">
    <frame x="48" y="288" width="48" height="48" />
    </animation>
    <animation direction="down_right">
    <frame x="48" y="192" width="48" height="48" />
    </animation>
    </set>

    <set tag="moving|dashing" sheet="YouFemaleExtra">
    <!-- Moving & Dashing states also use YouFemaleExtra.png -->
    <animation rate="3" direction="down_left">
    <!-- Animates at rate of 3 FPS -->
    <frame x="0" y="240" width="48" height="48" />
    <frame x="48" y="240" width="48" height="48" />
    <frame x="96" y="240" width="48" height="48" />
    </animation>
    <animation rate="3" direction="up_left">
    <!-- Animates at rate of 3 FPS -->
    <frame x="0" y="336" width="48" height="48" />
    <frame x="48" y="336" width="48" height="48" />
    <frame x="96" y="336" width="48" height="48" />
    </animation>
    <animation rate="3" direction="up_right">
    <!-- Animates at rate of 3 FPS -->
    <frame x="0" y="288" width="48" height="48" />
    <frame x="48" y="288" width="48" height="48" />
    <frame x="96" y="288" width="48" height="48" />
    </animation>
    <animation rate="3" direction="down_right">
    <!-- Animates at rate of 3 FPS -->
    <frame x="0" y="192" width="48" height="48" />
    <frame x="48" y="192" width="48" height="48" />
    <frame x="96" y="192" width="48" height="48" />
    </animation>
    </set>

    <!-- Also supports XML defined colliders, applies to entire character -->
    <collider>
    <circle cx='0.5' cy='0.75' r='0.5' />
    </collider>

    I have tested it with different images, with or without the plugin command, turning all other plugins off, turning all plugins off except those from Altimit Movement itself; but nothing I tried works.

    So if someone could help me out, that would be much appreciated!
     
    #1
  2. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,454
    Likes Received:
    929
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    1. Can you add a link to the plugin you're talking about? So people can check the instructions on how it should work

    2. Any errors in the console? (press F8 during playtest to open it)

    3. Please add a screenshot of your plugin order

    4. Try removing the comments from the XML. In XML comments are parsed as their own nodes so it could mess up things if the plugin isn't written well to ignore comments
     
    #2
  3. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,156
    Likes Received:
    10,313
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to JavaScript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #3
  4. Arend Galenkamp

    Arend Galenkamp I DO STUFF Veteran

    Messages:
    235
    Likes Received:
    107
    Location:
    The Netherlands
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    #4

Share This Page