How do I create stopwatch and total times together?

Get help using Construct 2

Post » Mon Dec 29, 2014 4:34 am

I'm trying to 1.Start timer when black sprite appears
2.Show amount of time that black sprite is visible until destroyed on touch
3.Total all times together

There isn't much to this capx but would really appreciate anyone that can help adjust it in any way.
You do not have the required permissions to view the files attached to this post.
B
21
S
6
Posts: 58
Reputation: 1,385

Post » Mon Dec 29, 2014 5:01 am

make a variable "timer"

if black sprite is visible
every 0.1 seconds
add 0.1 to "timer"

something like that?
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Mon Dec 29, 2014 6:57 am

Or, for better precision, every tick add dt to timer.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Mon Dec 29, 2014 7:16 am

Somebody wrote:Or, for better precision, every tick add dt to timer.


yeah, do it that way. :)
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Tue Dec 30, 2014 7:59 pm

Ok thank you.
B
21
S
6
Posts: 58
Reputation: 1,385


Return to How do I....?

Who is online

Users browsing this forum: Resslx, totoe and 25 guests