Animate Health Icon(26.8.0+)
This will health icon can be animate.
How to Use
1. create json file beside healthicon image, and rename icon same as health icon filename. Example if health icon name is karl.png, the file json must karl.json.
3. after writing in json file, the game should be automatic use animate version.
Json Fields
| Field |
Type |
Description |
Default |
Required |
| netral |
|
the netral icon. Or default icon state. |
{xmlName: 'netral', offset: [0, 0], fps: 24, loop: true, flipX: false, flipY: false} |
✓ |
| lose |
|
the lose icon state. |
same as netral |
✓ |
| win |
|
the win icon state. |
|
✗ |
| full |
|
the full icon state. |
same as netral |
✗ |
State Object Fields
| Field |
Type |
Description |
Default |
Required |
| xmlName |
String |
Xml field name to use animate. |
%fields% |
✓ |
| offset |
Array<Float> |
Sprite offset. |
[0, 0] |
✗ |
| fps |
Int |
Animation fps speed. |
24 |
✗ |
| loop |
Bool |
Set animation to keep looping. |
true |
✗ |
| flipX |
Bool |
Flip sprite X. |
false |
✗ |
| flipY |
Bool |
Flip sprite Y. |
false |
✗ |