skeleton_collision_draw_set


Description

With this function, you can toggle on (true) or off (false) drawing the collision data for the current skeletal animation sprite being used by the instance. If this is switched on, the bounding box and the precise collision mask will be drawn as outlines around the sprite.


Syntax:

skeleton_collision_draw_set(flag);

Argument Description
flag Set to true to turn on drawing, and false to turn it off.


Returns:

N/A


Example:

if debug_mode == true
    {
    skeleton_collision_draw_set(true);
    }

The above code checks to see if the game is being run in debug mode and if it is, it toggles the skeletal collision data for the instance to be shown.