skeleton_collision_draw_set

Toggle on or off the drawing of collision data for the skeletal animation 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


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.

IMPORTANT: Spine integration in GameMaker: Studio is a Pro licence feature and will not work in the Free/Standard versions.


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.


Back: Skeletal Animations
Next: skeleton_animation_get
© Copyright YoYo Games Ltd. 2018 All Rights Reserved