That lib allows you to add sprites directly into the map even if youre not the programmer.
====================================================
Current State : Raw version.
Need to add: Transparency, Rotation, Color params and optimization. Right now im lazy.
====================================================
How to use:
00) Sprites should be:
in png.
with alpha channel.
rgb image mode.
height of the sprite should be divisable by it's width.
0) Count the number of frames of your sprites and write it somewhere (frames=height/width).
1) Add your sprites to the lib.
2) Include the lib to the your map through Map Editor.
3) Then add the object called Spriter on the place where you want to see your sprite.
4) Define the params:
The 1st and 2nd param is most important ones.
SpriteName should be the name of your sprite, for example:
base.png
FrameNum should be the number of the frames of ur sprite, very important param, without right number the function willnot work
AnimSpeed should be the number from 1 to 1000. Its integer so dont use numbers like 1.5 or 50.5.
It will define Sprite animation speed, 100 or 200 should be fine for sprites with big number of frames.
Good way to determine your AnimSpeed is to use that formula:
AnimSpeed = (1/(FrameNum*22))*1000
ZPlane is layer where your sprites will be drawn. For example sprites with ZPlane 5 will be drawn above sprites with ZPlane 6.
Sprites with same ZPlanes will do thing, called by undef "Z fighting"
5) Then run ur map with any pxscheme (default.pxs is ok) to test if everything is ok.
6) You can also rename the lib to evade possible rewriting by the lib with the same name.
====================================================
Post questions and bugs.