Hi guys, my current project requires the user to import their image to use as a sprite, does anyone know of such plugins? Thanks!
No need for a plugin..
there is the filechooser-object and the load image from url event..
Manual entry about file chooser
LittleStain, how do I set the sprite to the image? Thanks
From the manual entry found above:
The file URL can be used like any other URL. For example, it can be requested by the AJAX object to load its contents as text, or passed to the Sprite object's Load image from URL action to display it.
Develop games in your browser. Powerful, performant & highly capable.
From the manual entry about sprites
Load image from URL
Load an image from a given URL. The current animation frame will be replaced with the image. It is not shown until the image has finished downloading, and On image URL loaded triggers. Images loaded from different domains are subject to the same cross-domain restrictions as AJAX requests - for more information see the section on cross-domain in the AJAX object. Data URIs can also be passed as an image, e.g. from a canvas snapshot or webcam image. The Size parameter sets whether the Sprite object will be set to the image size when it loads, or whether to keep its current size and stretch the image.