texturegroup_set_mode

This function allows you to set three things:

  1. Mode: You can set whether Dynamic Texture Groups use Implicit (default) or Explicit loading, by using false for Implicit and true for Explicit.

    For information on modes, see: Dynamic Group Modes
  2. Debug: You can enable debugging, which will show you all of your game's Texture Pages along with their status in-game.
  3. Default Sprite: This is the default sprite that appears when the mode is set to Explicit, and the texture you're drawing to draw has not been loaded.

    For more information, see: Explicit

 

 

Syntax:

texturegroup_set_mode(explicit, [debug=false, default_sprite=-1]);

ArgumentTypeDescription
explicitBooleanThe mode used for Dynamic Texture Groups: Implicit (false), or Explicit (true)
debugBooleanOPTIONAL Enable/disable Texture Group debugging
default_spriteSprite AssetOPTIONAL Only used in Explicit mode: The sprite used as the "fallback" texture when another texture is not loaded (the whole texture page is drawn)

 

Returns:

N/A

 

Example:

texturegroup_set_mode(true, false, spr_fallback);

This will enable Explicit mode, disable debugging and set spr_fallback as the fallback sprite for unloaded textures.