bbmod_async_image_loaded_update

A function defined in __bbmod_async.gml

bbmod_async_image_loaded_update(_asyncLoad)

Description

This function must be called in the "Async - Image Loaded" event if you use bbmod_sprite_add_async to asynchronnously load a sprite!

Arguments

Name Type Description
_asyncLoad Id.DsMap The async_load map.

Example

/// @desc Create event
bbmod_sprite_add_async("sprite.png", function (_err, _sprite) {
   if (!_err)
   {
       sprite_index = _sprite;
   }
});

/// @desc Async - Image Loaded event
bbmod_async_image_loaded_update(async_load);

See also

bbmod_sprite_add_async

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.