HTML5 Loading Sprites from URL

J

jaber

Guest
Hi Gamemakers,
I am aware of the function sprite_add but I have only seen it being used to load from a local external resource directory.
I want to load my sprites from a website using URLs... what would be the easiest way for that?
Thanks inadvance
Cheers
J
 

rytan451

Member
According to the manual, sprite_add can handle loading from URLs. Much like http_get_file you'll have to use an async event to handle the file taking a while to load.
 
J

jaber

Guest
According to the manual, sprite_add can handle loading from URLs. Much like http_get_file you'll have to use an async event to handle the file taking a while to load.
Ooops.. I was not aware of that.. I guess that is exately what I need thanks
 
Top