Much love at the speed and accuracy. However I had tried doing this before asking my question:
public void PlayIdle()
{
_baseState.SetAnimation(0, "idle", true);
_baseState.SetAnimation(1, "leftArmSwordIdle", true);
}
Which is what you do in the video as well. However in my case, my leftArmSwordIdle is overriding my default idle. The character doesnt bounce up and down, he just waves his left arm. Is my Spine export animation bad? Are my no-key-frame animations in the leftArmSwordIdle overriding the idle state animations?
Looking at my JSON I am seeing translates to '0' everything. Is that the issue?
Here is the JSON for my idle and idleWithSword
"leftArmSwordIdle": {
"bones": {
"backUpperArm": {
"rotate": [
{ "time": 0, "angle": 79.23 },
{ "time": 0.8, "angle": 87.94 },
{ "time": 1.6, "angle": 79.23 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backFoot": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backHand": {
"rotate": [
{ "time": 0, "angle": -13.48 },
{ "time": 0.8, "angle": 0 },
{ "time": 1.6, "angle": -13.48 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontLeg": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"hip": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"head": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backLowerArm": {
"rotate": [
{ "time": 0, "angle": 55.44 },
{ "time": 0.8, "angle": 58.58 },
{ "time": 1.6, "angle": 55.44 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontFoot": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"root": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"offHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"mainHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontUpperArm": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontLowerArm": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backLeg": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
}
}
},
And my default idle
"idle": {
"bones": {
"root": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"hip": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0 },
{ "time": 0.8, "x": 0, "y": 2.3 },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backLeg": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0 },
{ "time": 0.8, "x": 0, "y": -2.3 },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backUpperArm": {
"rotate": [
{ "time": 0, "angle": 0 },
{ "time": 0.8, "angle": 4.95 },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontLeg": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0 },
{ "time": 0.8, "x": 0, "y": -2.3 },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontUpperArm": {
"rotate": [
{ "time": 0, "angle": 0 },
{ "time": 0.8, "angle": -4.45 },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"head": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0 },
{ "time": 0.8, "x": 0, "y": 2.76 },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backFoot": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backLowerArm": {
"rotate": [
{ "time": 0, "angle": 0 },
{ "time": 0.8, "angle": -2.25 },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontFoot": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontLowerArm": {
"rotate": [
{ "time": 0, "angle": 0 },
{ "time": 0.8, "angle": 3.05 },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"backHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"frontHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"mainHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
},
"offHand": {
"rotate": [
{ "time": 0, "angle": 0, "curve": "stepped" },
{ "time": 0.8, "angle": 0, "curve": "stepped" },
{ "time": 1.6, "angle": 0 }
],
"translate": [
{ "time": 0, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 0.8, "x": 0, "y": 0, "curve": "stepped" },
{ "time": 1.6, "x": 0, "y": 0 }
]
}
}
},