Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tilengine Anim Suite
#3
Hi!

Good work, and thanks for your contribution! Smile 

Nowadays the .sqx format is only used for color cycle animation, but is kept for backwards compatibility with old code.
There's a function called TLN_CreateSpriteSequence() that allows creation of a sprite-based sequence from a numbered sequence of sprites inside a given spritesheet. This is more convenient, as the graphics artist just needs to give numbered names to sprite fames and the engine will build the sequence, without the need of an additional sqx file.

Please take a look at forest.c:
https://github.com/megamarc/Tilengine/bl...rest.c#L67

And this is the corresponding spriteset file:
https://github.com/megamarc/Tilengine/bl....json#L426

As you can see, Tilengine also reads standarised .json atlas format used by many engines and authoring tools. So you can tweak your new tool so it outputs this same format, with numbered sequence of named frames, and the engine will do the rest with a single API call to build the sequence.

Let me know how it progress!
Reply


Messages In This Thread
Tilengine Anim Suite - by Midnight Syntax - 05-05-2022, 02:25 PM
RE: Tilengine Anim Suite - by Midnight Syntax - 05-06-2022, 06:31 AM
RE: Tilengine Anim Suite - by megamarc - 05-08-2022, 04:33 PM
RE: Tilengine Anim Suite - by Midnight Syntax - 05-09-2022, 04:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)