How do I sync a timer bar with a set time

Get help using Construct 2

Post » Fri Nov 28, 2014 11:06 am

I have been trying to figure out how to fill a 100 pixel bar in 2 seconds and have it reset to 0 and start again. I can almost get it but the time seems a little off. I also want to be able to adjust the time later with achievements. I am making an idle game and every 2 seconds money is added to my total money. With achievements it should be able to cut the 2 seconds in half and become every 1 second. The only info i found on the forums helped but didn't explain how they came up with the answer they did. if i didn't explain myself well enough just ask and i'll try again to get my question across.
B
6
S
1
Posts: 36
Reputation: 452

Post » Fri Nov 28, 2014 11:46 am

,,,,,,,,,,,,,,,
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Fri Nov 28, 2014 7:53 pm

wow so simple compared to all the crap i was trying. thanks
B
6
S
1
Posts: 36
Reputation: 452

Post » Fri Nov 28, 2014 8:01 pm

..no problemo.. :D
..you can change Var_period whenever you want...
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Fri Nov 28, 2014 10:55 pm

I do have 1 question and maybe you'll see it too. On each achievement it should lower the time to fill bar to half of var_period. When i change var_period more than 2 times or so the bar doesn't seem to fill any faster. Question is, can I use a variable to raise the +1 that sets sprite.width and still use var_period? or would that throw the sync off?
B
6
S
1
Posts: 36
Reputation: 452

Post » Sat Nov 29, 2014 12:01 am

you can use Var_period like this..
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Sat Nov 29, 2014 10:26 am

thanks again you've taught me a lot
B
6
S
1
Posts: 36
Reputation: 452


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 8 guests