How do I solve progress bar visibility?

Just started using Construct 2? Post your questions here

Post » Sat Nov 12, 2016 1:05 pm

Hi,
I have a problem with the progress bar object.

I make a progress bar on level 0, than I add a new layer on top (let's call it layer 1).
I add a black rectangle on layer 1; the rectangle partially is over the progress bar. But the full progress bar appears on top of the rectangle.
I need to have only the progress bar part that is not covered by the rectangle to be visible. How can I solve it?

I made a capx: https://www.dropbox.com/s/hmqxmkpm09n7b ... .capx?dl=0

Thank you!
B
12
S
5
Posts: 42
Reputation: 990

Post » Sat Nov 12, 2016 1:19 pm

Probably this is the problem... from the manual: "Therefore, nothing can be displayed on top of a form control, apart from other form controls."
So maybe I have to use a sprite. Anyway if anyone have a different solution... is welcome :)
B
12
S
5
Posts: 42
Reputation: 990

Post » Sat Nov 12, 2016 4:39 pm

Yeah just create your own with a sprite if you're not planning on using the progress bar colours. When you come to relate the length of the overlapping sprite to the progress bar progress then you will essentially be making your own anyway...
B
45
S
15
G
73
Posts: 2,006
Reputation: 43,394

Post » Sun Nov 13, 2016 7:37 pm

Message: Ben Wilson can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Yeah, The progress bar always has to be on top.

"Form controls are actual HTML elements floating above the game canvas in the HTML page. Therefore, nothing can be displayed on top of a form control, apart from other form controls."
^^ From the construct 2 help on progress bar https://www.scirra.com/manual/180/progress-bar
So guess you have to make it your self
B
8
S
2
Posts: 22
Reputation: 606


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest