G
Giovanni Felice F
Guest
Hi,
I would like to ask, if there is a method (included or extension) to load external resources without blocking the game pipeline. (I use sprite_add function in the code)
To be clear, I am working on a game that would preferrably use sprite sheets for character actions (composed layered as torso, hand, head etc.) changing as the character changes equipment - pretty much like
http://www.kevinbertel.com/diablo2/...1=HVY&s2=HVY&rh=JAV&lh=0&sh=TOW&&submit=Build
They are pretty large however and, while loading (switching) just one 2 MB image for another, the game freezes for about 0.5 s on older machines. I'd much rather have the old sprite (sheet) that would be used until the new one is loaded in the background while playing.
I am using GM:S 1.4.
As I understand the Async events (e.g. image_loaded) just detect when an event. which is by nature async happens and will not be of any help to me. (e.g. it will not tell GM now this image is to be loaded in some other way). Correct me if I am wrong, please.
thanks for any hints
Giovanni F
I would like to ask, if there is a method (included or extension) to load external resources without blocking the game pipeline. (I use sprite_add function in the code)
To be clear, I am working on a game that would preferrably use sprite sheets for character actions (composed layered as torso, hand, head etc.) changing as the character changes equipment - pretty much like
http://www.kevinbertel.com/diablo2/...1=HVY&s2=HVY&rh=JAV&lh=0&sh=TOW&&submit=Build
They are pretty large however and, while loading (switching) just one 2 MB image for another, the game freezes for about 0.5 s on older machines. I'd much rather have the old sprite (sheet) that would be used until the new one is loaded in the background while playing.
I am using GM:S 1.4.
As I understand the Async events (e.g. image_loaded) just detect when an event. which is by nature async happens and will not be of any help to me. (e.g. it will not tell GM now this image is to be loaded in some other way). Correct me if I am wrong, please.
thanks for any hints
Giovanni F