How do I load sprite image from local storage

Get help using Construct 2

Post » Sat Jul 11, 2015 6:11 pm

I want to load Sprite Image during runtime from my PC storage (not from URL). How can I do that??
B
4
Posts: 15
Reputation: 234

Post » Sat Jul 11, 2015 6:45 pm

You mean using the file chooser object?
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 » Sun Jul 12, 2015 2:32 am

No, I mean the actions for Sprite. Load Image from URL. Is there any process to load image from PC storage.
B
4
Posts: 15
Reputation: 234

Post » Sun Jul 12, 2015 3:23 am

In the Projects view, right-click the Files folder. Then click Import Files.. (add the files you want to change during runtime there)

then use the Load from URL Action.. and just type the filename in quotes: "file.png"
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Sun Jul 12, 2015 11:45 am

Thanks a lot.
But I have faced a new problem-
Let I have changed the image of "Sprite1". All "Sprite1" images were changed. Is there any way to change the only last created Sprite image????
B
4
Posts: 15
Reputation: 234

Post » Thu Aug 27, 2015 4:54 pm

Sourav21 wrote:Thanks a lot.
But I have faced a new problem-
Let I have changed the image of "Sprite1". All "Sprite1" images were changed. Is there any way to change the only last created Sprite image????


It is because of the same texture of one sprite.
Take a look here:
https://www.scirra.com/forum/sprite-loadimage-from-url-is-working-wrong_t77930
B
22
S
7
G
1
Posts: 13
Reputation: 2,212


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, lahbach, ST314 and 19 guests