手动控制spine 动画
This commit is contained in:
@@ -1 +1,101 @@
|
||||
{"animator":"1.0.0","mainStateMachine":{"layerPos":[56.40011519631385,88.05260631659786],"layerScale":1.2000000000000002,"anyStatePos":[-300,300],"subStates":["Idle","Walk","Attack"],"subStateMachines":[]},"subStateMachines":[],"defaultState":"Idle","anyState":{"transitions":[{"toState":"Attack","hasExitTime":false,"conditions":[{"param":"Attack","value":0,"logic":0}]}]},"states":[{"position":[-300,-120],"upStateMachine":"BaseLayer","state":"Idle","motion":"Stand","speed":1,"multiplier":"","loop":true,"transitions":[{"toState":"Walk","hasExitTime":false,"conditions":[{"param":"Speed","value":1,"logic":0}]}]},{"position":[150,-120],"upStateMachine":"BaseLayer","state":"Walk","motion":"Run","speed":1,"multiplier":"","loop":true,"transitions":[{"toState":"Idle","hasExitTime":false,"conditions":[{"param":"Speed","value":0,"logic":0}]}]},{"position":[-300,90],"upStateMachine":"BaseLayer","state":"Attack","motion":"Attack","speed":1,"multiplier":"","loop":false,"transitions":[{"toState":"Idle","hasExitTime":true,"conditions":[]}]}],"parameters":[{"param":"Speed","type":2,"init":0},{"param":"Attack","type":3,"init":0}]}
|
||||
{
|
||||
"defaultState": "idle",
|
||||
"anyState": {
|
||||
"transitions": [
|
||||
{
|
||||
"toState": "act1",
|
||||
"hasExitTime": false,
|
||||
"conditions": [
|
||||
{
|
||||
"param": "act1",
|
||||
"value": 0,
|
||||
"logic": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"position": [
|
||||
-300,
|
||||
-120
|
||||
],
|
||||
"upStateMachine": "BaseLayer",
|
||||
"state": "idle",
|
||||
"motion": "idle",
|
||||
"speed": 1,
|
||||
"multiplier": "",
|
||||
"loop": true,
|
||||
"transitions": [
|
||||
{
|
||||
"toState": "move",
|
||||
"hasExitTime": false,
|
||||
"conditions": [
|
||||
{
|
||||
"param": "Speed",
|
||||
"value": 1,
|
||||
"logic": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"position": [
|
||||
150,
|
||||
-120
|
||||
],
|
||||
"upStateMachine": "BaseLayer",
|
||||
"state": "move",
|
||||
"motion": "Run",
|
||||
"speed": 1,
|
||||
"multiplier": "",
|
||||
"loop": true,
|
||||
"transitions": [
|
||||
{
|
||||
"toState": "idle",
|
||||
"hasExitTime": false,
|
||||
"conditions": [
|
||||
{
|
||||
"param": "Speed",
|
||||
"value": 0,
|
||||
"logic": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"position": [
|
||||
-300,
|
||||
90
|
||||
],
|
||||
"upStateMachine": "BaseLayer",
|
||||
"state": "act1",
|
||||
"motion": "act1",
|
||||
"speed": 1,
|
||||
"multiplier": "",
|
||||
"loop": false,
|
||||
"transitions": [
|
||||
{
|
||||
"toState": "idle",
|
||||
"hasExitTime": true,
|
||||
"conditions": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"param": "Speed",
|
||||
"type": 2,
|
||||
"init": 0
|
||||
},
|
||||
{
|
||||
"param": "act1",
|
||||
"type": 3,
|
||||
"init": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user