Image Importer Plugin

Get help using Construct 2

Post » Sat Jul 11, 2015 10:02 am

Hi guys, my current project requires the user to import their image to use as a sprite, does anyone know of such plugins? Thanks!
B
16
S
6
G
2
Posts: 42
Reputation: 2,554

Post » Sat Jul 11, 2015 10:26 am

No need for a plugin..

there is the filechooser-object and the load image from url event..

Manual entry about file chooser
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jul 11, 2015 10:42 am

@LittleStain, how do I set the sprite to the image? Thanks
B
16
S
6
G
2
Posts: 42
Reputation: 2,554

Post » Sat Jul 11, 2015 10:49 am

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jul 11, 2015 10:50 am

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: NN81, Syazanie Amirin and 6 guests