bbmod_async_image_loaded_update

function

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 © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.