![Json :json](./images/smilies/bear_json.png)
Code: Select all
[
{
"id": "$anim_test_control00",
"type": "terrain",
"width":1,
"height":1,
"template":"$template_ground",
"frames":[{"x":416,"y":96,"w":32,"h":16}],
"animation":[
{"id":"$animationfan00","x":-16,"y":-48} // Animation slot 0
],
"on click fun":{
"condition":{"type":"animation running"}, // Is animation in slot 0 running?
"action":{"type":"animation pause"}, // Pause it
"else action":{"type":"animation resume"} // Resume it
}
}
]
![Miner :mine](./images/smilies/bear_mine.png)