Can timebar with globalUI work together ?

Get help using Construct 2

Post » Sun Jan 19, 2014 3:28 pm

Hi
I have a problem with timebar and globalUI from tutorial site.
I'm trying to get them to work together but I have a problem.
When player fall (or I use restart button) timebar don't reset and don't count from begining.

https://www.dropbox.com/s/atvbnfqelr9iwiv/timebar_globalUI.capx

Oryginal capx with timebar event code is not mine I found him somewhere in forum but don't remember who or where released and can't find again - sorry.

P.S.
Run from globalUI layoutdarekk2014-01-19 15:31:52
B
5
S
1
G
1
Posts: 9
Reputation: 566

Post » Sun Jan 19, 2014 4:26 pm

in the Start of Layout section, right now you have

TimeBar set InitialWidth to TimeBar.Width

what that does is tell C2 to remember the current width.
You want to tell it to reset the width to full and reset the time to max.

so, you want:

TimeBar set InitialWidth to 352   (or whatever you want for full)
TimeBar set Time to TimeBar.MaxTime

Then, when the layout restarts it goes back to a full time bar.
B
98
S
34
G
20
Posts: 438
Reputation: 17,825

Post » Mon Jan 20, 2014 6:31 pm

Thanks a lot, that solve my problem.
Greetings
B
5
S
1
G
1
Posts: 9
Reputation: 566


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests