FORUM ARCHIVED

Creating a .spr file

Discussion in 'Modding' started by Alistaire, Nov 15, 2012.

  1. Alistaire

    Alistaire Member

    Are .spr files necessary for custom animations?
    > If yes, how do you make them?
    > If no, what else do you need?
     
  2. Daynab

    Daynab Community Moderator Staff Member

    I can't answer all your questions because I don't really delve in modding but:
    SPR files are an old proprietary format that isn't used anymore, these days you can create animations/sprites with PNGs.
    And then reference frames to them in the XML. Someone can elaborate I'm sure.
     
  3. They are not. For sfx all you need is the png files named otherwise identically with 0000, 0001 etc. on the end. For monsters, you'll need the pngs and an xml file formatted fairly self-explanatorily like this:
    Code:
    <?xml version="1.0" encoding="us-ascii"?>
    <sprite>
      <frame delay="500">dog_idle1.png</frame>
      <frame delay="100">dog_idle2.png</frame>
      <frame delay="100">dog_idle3.png</frame>
      <frame delay="100">dog_idle4.png</frame>
      <frame delay="100">dog_idle3.png</frame>
      <frame delay="100">dog_idle2.png</frame>
    </sprite>
    ... which you'll point to in lieu of a .spr file in the monster's listing.
     
  4. Alistaire

    Alistaire Member

    Sooo the way the .spr to .png converter sorts them?
     
  5. Kazeto

    Kazeto Member