Load an image from the internet.

Get help using Construct 2

Post » Thu Jan 02, 2014 7:26 pm

Is it possible to load an image from the internet as a sprite? I want to be able to insert a sprite that I can change at any time while the user is online, because the sprite is an image from a website that I own.
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Thu Jan 02, 2014 7:30 pm

Sprite object in the manual

look for "load from url"
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 » Thu Jan 02, 2014 8:37 pm

@LittleStain Many thanks!
For anyone who finds this thread, here's what the manual says:

"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."HacksawUnit2014-01-02 20:37:12
B
9
S
3
Posts: 52
Reputation: 1,260


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, plinkie, rayolf and 11 guests