knightshaft
Member
In "Create"
works fine
In "Step"
The following debug code is output:
The "else" statement runs but the skeleton_attachment_set does not set! What am I missing!?
skeleton_attachment_set("Rear-Hand", "Brown/front-fist-closed");
works fine
In "Step"
GML:
if (Engine_obj.step_counter<20) {
show_debug_message("Attach: x");
skeleton_attachment_set("Rear-Hand", "Brown/front-fist-closed");
} else {
show_debug_message("Attach: y");
skeleton_attachment_set("Rear-Hand", "Brown/BackHand");
}
sag = skeleton_attachment_get("Rear-Hand");
show_debug_message("Attach: "+string(sag));
Code:
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: x
Attach: Brown/front-fist-closed
Attach: y
Attach: y
Attach: Brown/front-fist-closed
Attach: Brown/front-fist-closed
st-closed
Attach: y
Attach: Brown/front-fist-closed
Attach: y
Attach: Brown/front-fist-closed
Attach: y
Attach: Brown/front-fist-closed
Attach: Brown/front-fist-closed
st-closed
Attach: y
Attach: Brown/front-fist-closed
Attach: y
Attach: y
Attach: Brown/front-fist-closed
Attach: Brown/front-fist-closed
st-closed
Attach: y
Attach: Brown/front-fist-closed