手动控制spine 动画

This commit is contained in:
pan@work
2024-07-19 17:11:19 +08:00
parent f34018ac59
commit d80f16a0f7
22 changed files with 675 additions and 1221 deletions

View File

@@ -0,0 +1,154 @@
{
"animator": "1.0.0",
"mainStateMachine": {
"layerPos": [
0,
0
],
"layerScale": 1,
"anyStatePos": [
-660,
390
],
"subStates": [
"act1",
"idle",
"magic1",
"move"
],
"subStateMachines": []
},
"subStateMachines": [],
"defaultState": "idle",
"anyState": {
"transitions": []
},
"states": [
{
"position": [
-180,
420
],
"upStateMachine": "BaseLayer",
"state": "act1",
"motion": "act1",
"speed": 1,
"multiplier": "",
"loop": false,
"transitions": [
{
"toState": "idle",
"hasExitTime": true,
"conditions": []
}
]
},
{
"position": [
-390,
240
],
"upStateMachine": "BaseLayer",
"state": "idle",
"motion": "idle",
"speed": 1,
"multiplier": "",
"loop": true,
"transitions": [
{
"toState": "move",
"hasExitTime": false,
"conditions": [
{
"param": "act1",
"value": 0,
"logic": 0
}
]
},
{
"toState": "act1",
"hasExitTime": false,
"conditions": [
{
"param": "magic1",
"value": 0,
"logic": 0
}
]
},
{
"toState": "magic1",
"hasExitTime": false,
"conditions": [
{
"param": "move",
"value": 0,
"logic": 0
}
]
}
]
},
{
"position": [
60,
180
],
"upStateMachine": "BaseLayer",
"state": "magic1",
"motion": "magic1",
"speed": 1,
"multiplier": "",
"loop": false,
"transitions": [
{
"toState": "idle",
"hasExitTime": true,
"conditions": []
}
]
},
{
"position": [
-240,
0
],
"upStateMachine": "BaseLayer",
"state": "move",
"motion": "move",
"speed": 1,
"multiplier": "",
"loop": false,
"transitions": [
{
"toState": "idle",
"hasExitTime": true,
"conditions": []
}
]
}
],
"parameters": [
{
"param": "act1",
"type": 3,
"init": 0
},
{
"param": "magic1",
"type": 3,
"init": 0
},
{
"param": "move",
"type": 3,
"init": 0
},
{
"param": "idle",
"type": 3,
"init": 0
}
]
}

View File

@@ -0,0 +1,11 @@
{
"ver": "2.0.1",
"importer": "json",
"imported": true,
"uuid": "87e4e045-ac3f-421a-9569-ca46b8648e2a",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}