M
Mystborn
Guest
Hello everyone!
This extension allows GM applications to load png files in the background without blocking the main thread.
Typically this will be useful for loading sprites/other images during a loading screen.
Marketplace
Features:
Edit: Once I get some free time, I'll fully document this project as I usually do. This was just a fun project to show a relatively practical use of this tutorial, but if you haven't watched it, the code might be confusing.
For now, I'll just outline the data returned in the async_load map:
li_load_image_async:
If you have any questions, feature requests, or other feedback, please feel free to post it!
This extension allows GM applications to load png files in the background without blocking the main thread.
Typically this will be useful for loading sprites/other images during a loading screen.
Marketplace
Features:
- Free!
- Asynchronously load png images.
- Open Source! See the code over on Github
- Currently Supported: Here and Discord
Edit: Once I get some free time, I'll fully document this project as I usually do. This was just a fun project to show a relatively practical use of this tutorial, but if you haven't watched it, the code might be confusing.
For now, I'll just outline the data returned in the async_load map:
li_load_image_async:
- "type" : "image_loaded"
- "handle" : The value returned by li_load_image_async. Used to determine which image was loaded.
- "image" : The id of the loaded image, used in further operations.
- "error" : 0 if there was no error. Otherwise an error was thrown. You can get the error message via li_get_error_message.
- "type" : "buffer_loaded"
- "buffer" : The id of the buffer that was loaded.
- "image" : The id of the image that was loaded.
- "handle" : The value that was returned by li_load_image_data_async.
If you have any questions, feature requests, or other feedback, please feel free to post it!
Last edited by a moderator: