How do I upload images 1 by 1

Get help using Construct 2

Post » Sat Mar 21, 2015 9:04 am

Greetings there! ^_^
So i newely bought the C2 and have looked up on the tutorials, but however there is 1 thing i need help with!
The file chooser! What i want to do is simply;

Allow to upload an image 1 by 1, that is let's say you run the program. You upload an image, and 5 minutes later you upload another image -
without replacing the first one. So far i have set
Sprite 1 to load FileChooser.FileURLAt(0)
Sprite 2 to load FileChooser.FileURLAt(1)

And etc. It does not work. It only works if you set file chooser to multiple files, ONCE though.
But i want to be able to load up single files now and then WITHOUT replacing the existing one.

Any help or capx? >.<
B
5
Posts: 21
Reputation: 269

Post » Sat Mar 21, 2015 12:38 pm

No one seems to know this >.<
B
5
Posts: 21
Reputation: 269

Post » Sat May 14, 2016 11:31 am

it's also the same question i want to ask
B
57
S
18
G
5
Posts: 70
Reputation: 6,138

Post » Sat May 14, 2016 5:46 pm

totoyan wrote:it's also the same question i want to ask

Allow to upload an image 1 by 1, that is let's say you run the program. You upload an image, and 5 minutes later you upload another image -
without replacing the first one. So far i have set
Sprite 1 to load FileChooser.FileURLAt(0)
Sprite 2 to load FileChooser.FileURLAt(1)


if you upload just one file (1 by 1)..you always load FileChooser.FileURLAt(0)
if you use just one sprite ..and if you want to load next image WITHOUT replacing the existing one
you need new frame...

oneSpriteExample.capx

Image
Image
B
57
S
23
G
7
Posts: 1,427
Reputation: 10,508

Post » Mon May 16, 2016 12:46 am

korbaach wrote:
totoyan wrote:it's also the same question i want to ask

Allow to upload an image 1 by 1, that is let's say you run the program. You upload an image, and 5 minutes later you upload another image -
without replacing the first one. So far i have set
Sprite 1 to load FileChooser.FileURLAt(0)
Sprite 2 to load FileChooser.FileURLAt(1)


if you upload just one file (1 by 1)..you always load FileChooser.FileURLAt(0)
if you use just one sprite ..and if you want to load next image WITHOUT replacing the existing one
you need new frame...

oneSpriteExample.capx

Image



@korbaach thanks for your kindly helping! i will go to try it.
B
57
S
18
G
5
Posts: 70
Reputation: 6,138


Return to How do I....?

Who is online

Users browsing this forum: Ratmaster, Vilin13, Zarocks and 3 guests