Is there a way to scale the image loaded in a sprite?

Get help using Construct 2

Post » Thu Mar 05, 2015 11:31 pm

Hi everyone,
Sorry to be a bother again, but I was wondering if there is a way to scale the sprite is loaded from a URL.
In my project, I have a file selection dialogue, which upon a file being selected, a sprite loads the chosen image from the URL. Is there a way I can set the sprite so that the width of the image is set to the width of the layout, then the sprite/layout automatically change sizes according to the height of the image.

Thanks in advance for any help that can be given!
B
10
S
1
Posts: 72
Reputation: 1,015

Post » Fri Mar 06, 2015 5:52 am

After sprite is selected/loaded:
Set Width of Sprite to LayoutWidth
Set Height of Sprite to LayoutHeight
B
56
S
15
G
13
Posts: 825
Reputation: 17,643


Return to How do I....?

Who is online

Users browsing this forum: DjowG, ramyaswetha and 7 guests