load(_path[, _sha1[, _onLoad]])


Asynchronnously loads a resource from a file or retrieves a reference to it, if it is already loaded.


Name Type Description
_path String The path to the resource.
_onLoad `String/Undefined [_sha1] Expected SHA1 of the file. If the actual

one does not match with this, then the resource will not be loaded. @param {Function/Undefined| A function to execute when the resource is loaded or if an error occurs while loading it. It must take the error as the first argument and the resource as the second argument. If no error occurs, thenundefined` is passed. If the resource was already loaded when calling this function, then this callback is not executed. |


Struct.BBMOD_Resource/Undefined The resource.


Currently supported files formats are *.bbmod for BBMOD_Model, *.bbanim for BBMOD_Animation and *.png, *.gif, *.jpg/jpeg for BBMOD_Sprite.

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.