Reset sprite after "load image from url"

Get help using Construct 2

Post » Wed Feb 13, 2013 9:54 am

Hello !

1) I've a sprite named Sprite1 with a default image on him.
2) I load an image with "load image from url".
3) I restart the layout because i'm leaving the room and want to go in another one.
4) The sprite image is still the last one loaded from the url, not the default one.

How do I reset sprite after loading an image from url ?
Should I use animation frame ?

Thanks !

Edit :
I tried with animation frame :

On start of layout -> Sprite1 -> set animation frame to 0 (default frame)


On action -> Sprite 1 -> set animation frame to 1
          -> Sprite 1 -> load image from url (Keep Current Size)

It was a good idea, it worked on the first "on action", but after restarting the layout and relauching "on action" the sprite is resized to a very small sprite (like 8*8 or 16*16) ... So it didn't work.Joskin2013-02-13 10:57:22
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Thu Feb 14, 2013 12:33 pm

Well, I reported this bug of sprite size, but i'm still waiting for ideas and advices !
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Thu Feb 14, 2013 9:08 pm

On Image URL loaded > Set scale to 1 ?
B
20
S
5
G
8
Posts: 325
Reputation: 6,473


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Yahoo [Bot] and 21 guests