DGElogo

Dragon Engine

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.

2. in json field that has field. List Field or example.json.

3. after writing in json file, the game should be automatic use animate version.

Json Fields

Field Type Description Default Required
netral

State Object

the netral icon. Or default icon state. {xmlName: 'netral', offset: [0, 0], fps: 24, loop: true, flipX: false, flipY: false}
lose

State Object

the lose icon state. same as netral
win

State Object

the win icon state.
full

State Object

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