I'm attempting to modify the colors of specific slots during runtime, when the FlxSpine is created.
My new function looks something like this:
public function new() {
super(FlxSpine.readSkeletonData("man", "assets/spine/"), 0, 0);
var slot = skeletonData.findSlot("hand");
slot.color.set(.2, .4, .6, .5);
trace(slot.getColor().r);
skeleton.updateWorldTransform();
}
The code compiles OK, and I don't get any errors, but whatever I do, I can't seem to get the colors of the slots to change at all. The trace function returns the color it's supposed to be, but the slot and it's attachment don't change at all.
Could someone steer me in the right direction?