How do I let the user upload file and use as sprite

Get help using Construct 2

Post » Sat Mar 29, 2014 11:27 am

Hey,

I'd like to let the user choose a file from their PC and then use the selected file as sprite in the game.
I think I've heard someone do this before on the forum, but I'm not sure..

Is it possible?
Thanks in advance,

Chris
B
5
S
1
Posts: 17
Reputation: 387

Post » Sun Mar 30, 2014 12:24 pm

bump.. :(
B
5
S
1
Posts: 17
Reputation: 387

Post » Sun Mar 30, 2014 1:12 pm

i never think that will be possible. but,just waiting if Scirra update new Behavior like that function.
~Everyone can make GAMEs~
B
57
S
12
G
1
Posts: 414
Reputation: 5,936

Post » Tue Apr 01, 2014 12:09 am

Hi, i need this function too. I'd like to let players upload a file to my server. there is a way to let people upload an image file in any way?
B
1
Posts: 3
Reputation: 131

Post » Tue Apr 01, 2014 12:13 am

i think it should be something like the "user media" object, but chosing from their pc instead of microphone or webcam.
B
1
Posts: 3
Reputation: 131

Post » Tue Apr 01, 2014 1:49 am

Each sprite has a "Web (section)" -> Load Image from URL function. Try that, HOWEVER, remember that some servers don't allow people outside of their domain to make image requests -- in which case, your image won't load. :)

I don't think you need the user media object for this.

Hope this helps.

-Remy
B
73
S
14
G
1
Posts: 152
Reputation: 5,026

Post » Tue Apr 01, 2014 1:49 am

Err @c0105 @cenerebianca :)
B
73
S
14
G
1
Posts: 152
Reputation: 5,026

Post » Tue Apr 01, 2014 9:37 am

oh, thanks, very helpful. it wont solve the problem to let people browse on their computer and upload a file, but it something at least
B
1
Posts: 3
Reputation: 131

Post » Thu Apr 03, 2014 6:18 pm

Allright, thank you :)
B
5
S
1
Posts: 17
Reputation: 387


Return to How do I....?

Who is online

Users browsing this forum: KefiRocK, Lordshiva1948, Syazanie Amirin, Yahoo [Bot] and 4 guests