Page 1 of 1

How do I show a percent of a sprite?

PostPosted: Tue Jan 17, 2017 7:04 pm
by ezrubiera
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 :)

Re: How do I show a percent of a sprite?

PostPosted: Tue Jan 17, 2017 7:14 pm
by blackhornet
TiledBackground

Re: How do I show a percent of a sprite?

PostPosted: Tue Jan 17, 2017 7:38 pm
by ezrubiera
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

Re: How do I show a percent of a sprite?

PostPosted: Tue Jan 17, 2017 7:49 pm
by blackhornet
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.)

Re: How do I show a percent of a sprite?

PostPosted: Tue Jan 17, 2017 8:26 pm
by ezrubiera
Yeah, thank you very much