Position of Spritesheet

Within the sprite-sheet when using the S4P library does the position of the sprite-sheet have to be an almost / perfectly matching square ? I have found using spritesheets which do not have an proper alignment between each picture seems to go awkward is the only solution to this to fix up the sprite-sheet ? Many Thanks. InferNova

Tagged:

Answers

  • edited May 23

    S4P expects all the sprites on a particular sheet to be have width and height with no gaps between them.

    If the sprites are of irregular size and not in a grid pattern then you would need a second file detailing the [x, y, w, h] for each sprite on the sheet.

  • @quark How is the second file passed in ? may I have an example of how it's done ? Thank you in advance.

  • Answer ✓

    Sorry I didn't make it clear - S4P does not support separate files for sprite positioning, as I said before -

    S4P expects all the sprites on a particular sheet to be have width and height with no gaps between them.

Sign In or Register to comment.