Skip to content

Requirements

Fracture is a fairly specific library. It makes certain assumptions about how your project is structured, and expects a few things to be prepared before you fracture anything.

Keep the following in mind for it to work as intended.

Room Physics

Room Physics must be enabled in any room where Fracture is used.

WARNING

Enabling Room Physics disables GameMaker's built-in motion system. None of the motion variables or functions will work with physics enabled. This is a GameMaker limitation that's not specific to Fracture - motion system and Box2D physics are mutually exclusive.

Fractured Instances

  • Instances must have valid sprites assigned to be fractured.
  • Vector sprites (SVGs) cannot be fractured. Fracture relies on sprite_get_texture() to access pixel data, which doesn't work with vector graphics. This is a GameMaker limitation.
  • Instances with negative image_xscale or image_yscale cannot currently be fractured. Negative scale support is planned for a future version.

Rendering & Collision

  • All Pieces render on a single shared layer or depth, so depth sorting with other instances is not supported. Fracture targets sidescrollers, space shooters, and other perspectives where depth sorting is not a concern.
  • Fracture doesn't create any world geometry for you, and you'll need walls or colliders with physics fixtures for Pieces to collide and bounce against. If your walls aren't physics-enabled, Pieces will only collide with each other and fall through the map.