Version 1.2 adds support for a new feature, animated paths.
Animated paths require use of 3 new properties for a path:
- The Animated property needs to be present and have the value true
- The Frames property needs to be present, and is a array of frames to render in order
- The MillisPerFrame property controls how long each frame is visible (Default, 200 milliseconds if property is not set)
To have multiple frames, simply copy the whole existing path, and append it to the bottom of the tilesheet.
Frames start at index 0
The Frames array needs to list each frame you want in the order you want them.
Thus, the value [0,1,2,1,0] means "Frame 0, Frame 1, Frame 2, then Frame 1 again, then Frame 0 again" before the cycle then repeats.
The speed at which these cycles happen is controlled by the MillisPerFrame option, by default this value is 200, meaning 5 frames per second (There are 1000 milliseconds in a second)
A texture can have up to 10 total frames in it.
Animated textures can also be seasonal, in which case all 4 season variants need to have the same amount of frames in the texture.
0 comments