|

11精币
{"file":"12041705_1_attack_tex.png","mc":{"12041705_1_attack":{"frames":[{"y":-215,"res":"attack_0","duration":2,"x":-164},{"y":-205,"res":"attack_2","duration":2,"x":-156},{"y":-194,"res":"attack_4","duration":2,"x":-156},{"y":-190,"res":"attack_6","duration":2,"x":-157},{"y":-218,"res":"attack_8","duration":2,"x":-134},{"y":-242,"res":"attack_10","duration":2,"x":-99},{"y":-221,"res":"attack_12","duration":2,"x":-100},{"y":-213,"res":"attack_14","duration":2,"x":-100},{"y":-152,"res":"attack_16","duration":2,"x":-100},{"y":-151,"res":"attack_18","duration":2,"x":-100},{"y":-153,"res":"attack_20","duration":2,"x":-100},{"y":-142,"res":"attack_22","duration":2,"x":-100},{"y":-145,"res":"attack_24","duration":2,"x":-100},{"y":-149,"res":"attack_26","duration":2,"x":-100},{"y":-151,"res":"attack_28","duration":2,"x":-100},{"y":-154,"res":"attack_30","duration":2,"x":-100},{"y":-152,"res":"attack_32","duration":2,"x":-100},{"y":-151,"res":"attack_34","duration":2,"x":-100},{"y":-153,"res":"attack_36","duration":2,"x":-100},{"y":-142,"res":"attack_38","duration":2,"x":-100},{"y":-174,"res":"attack_40","duration":2,"x":-100},{"y":-185,"res":"attack_42","duration":2,"x":-149},{"y":-188,"res":"attack_44","duration":2,"x":-156},{"y":-199,"res":"attack_46","duration":2,"x":-177},{"y":-209,"res":"attack_48","duration":2,"x":-178}],"labels":[{"end":50,"frame":1,"name":"attack"}],"frameRate":20,"events":[{"name":"@attack","frame":17}]}},"res":{"attack_22":{"x":1160,"y":586,"w":201,"h":184},"attack_4":{"x":498,"y":764,"w":257,"h":236},"attack_16":{"x":1136,"y":0,"w":201,"h":194},"attack_14":{"x":524,"y":231,"w":227,"h":255},"attack_10":{"x":279,"y":500,"w":218,"h":285},"attack_42":{"x":538,"y":0,"w":250,"h":227},"attack_2":{"x":266,"y":252,"w":257,"h":247},"attack_28":{"x":934,"y":425,"w":201,"h":193},"attack_12":{"x":498,"y":500,"w":233,"h":263},"attack_8":{"x":0,"y":752,"w":238,"h":259},"attack_26":{"x":1156,"y":195,"w":201,"h":191},"attack_36":{"x":934,"y":0,"w":201,"h":195},"attack_32":{"x":756,"y":704,"w":201,"h":194},"attack_40":{"x":732,"y":487,"w":201,"h":216},"attack_46":{"x":0,"y":510,"w":278,"h":241},"attack_24":{"x":1338,"y":0,"w":201,"h":187},"attack_0":{"x":0,"y":252,"w":265,"h":257},"attack_20":{"x":954,"y":196,"w":201,"h":195},"attack_6":{"x":239,"y":786,"w":258,"h":232},"attack_38":{"x":958,"y":813,"w":201,"h":184},"attack_18":{"x":958,"y":619,"w":201,"h":193},"attack_34":{"x":1136,"y":392,"w":201,"h":193},"attack_30":{"x":752,"y":228,"w":201,"h":196},"attack_44":{"x":280,"y":0,"w":257,"h":230},"attack_48":{"x":0,"y":0,"w":279,"h":251}}}
就是下面"res":{
res":{"attack_22":{"x":1160,"y":586,"w":201,"h":184}
xywh 上面得
就是下面"frames":{
{"y":-142,"res":"attack_22","duration":2,"x":-100}
转换成这样
attack_22.png|1160|586|204|184|-142|-100
有没有老大帮忙弄一哈
谢谢了!!
上面有个老哥帮我搞定了 xywh 还少了个x y |
|
最佳答案
查看完整内容
[e=1].版本 2
.支持库 spec
.子程序 _按钮1_被单击
.局部变量 json, 类_json
.局部变量 i, 整数型
.局部变量 res, 文本型
.局部变量 x1, 文本型
.局部变量 x2, 文本型
.局部变量 y1, 文本型
.局部变量 y2, 文本型
.局部变量 w, 文本型
.局部变量 h, 文本型
json.解析 (#常量1, , )
.计次循环首 (json.成员数 (“mc['12041705_1_attack'].frames”), i)
res = json.取通用属性 (“mc['12041705_1_attack'].frames[” + 到文 ...
|