How do I show a percent of a sprite?

Get help using Construct 2

Post » Tue Jan 17, 2017 7:04 pm

Hello, I want to make custom progress bars, with custom shapes, so one can overlap each other and whatever. The thing I want to do is to show a percent of an sprite. Not change its width or height, that distorts the sprite. I want a way to render a percentage of a sprite. I do not know if there is any way to do it with construct behaviours and functions, or there is a plugin or something.

Hope you can help me, thanks in advance :)
B
6
S
2
Posts: 61
Reputation: 1,099

Post » Tue Jan 17, 2017 7:14 pm

TiledBackground
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067

Post » Tue Jan 17, 2017 7:38 pm

blackhornet wrote:TiledBackground



ok, but now I can only change its size from up to down, no matter where the hotspot is. If I want to make the sprite larger from bottom to top the image is also displaced
B
6
S
2
Posts: 61
Reputation: 1,099

Post » Tue Jan 17, 2017 7:49 pm

You can flip it. Drag the top/middle handle below the bottom, with hotspot at Bottom-left. (You'll see the height in the properties goes negative.)
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067

Post » Tue Jan 17, 2017 8:26 pm

Yeah, thank you very much
B
6
S
2
Posts: 61
Reputation: 1,099


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests