How to load a sprite from the web

From MiniScript Wiki
Jump to navigation Jump to search

To load a sprite from an image on the web, simply pass the URL to http.get, and assign the result to the sprite's .image property.


sp = new Sprite
sp.image = http.get("")
sp.x = 480
sp.y = 320
display(4).sprites.push sp