Results 1 to 2 of 2

Thread: What is fileseq needed for?

  1. #1
    Join Date
    Jan 2013

    Default What is fileseq needed for?

    Guys, i've just started learning ClanLib and i don't understand, what is filesequence attribute in sprite resource and what is it needed for when we have filename attribute? Please, help me with that

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Bergen, Norway


    Lets say you have all your animation frames for your sprites in separate PNG files, like mustang_00.png, mustang_01.png, mustang_02.png, ..., mustang_31.png

    You could then tell the resource the "pattern" of your filenames:

    <sprite name="mustang">
    <image fileseq="mustang_.png" start_index="0" leading_zeroes="1" />

    This will try to load all the available images in sequence. It stops loading when it can't find an image with the correct number.

Similar Threads

  1. New improvements needed
    By autourdupc in forum Tanked
    Replies: 5
    Last Post: 04-01-2012, 07:44 AM
  2. Help Needed
    By Mikegrann in forum Novashell Game Creation System
    Replies: 1
    Last Post: 03-14-2008, 03:49 AM
  3. Help needed with Dink C.
    By Davidi in forum Dink Smallwood HD
    Replies: 1
    Last Post: 06-22-2005, 12:26 AM
  4. help needed in windemere
    By in forum Dink Smallwood HD
    Replies: 4
    Last Post: 07-09-2004, 09:03 AM
  5. dink help needed
    By in forum Dink Smallwood HD
    Replies: 4
    Last Post: 08-13-2003, 02:39 AM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts