Time help

New releases and general discussions.

Post » Tue Oct 11, 2011 11:35 am

I'm trying to figure out how time works. What I want to do is, let's say your time is set like 5:00 (that is minutes) and that need to be count to 0 & then the system close the application.

I know it's got something to do with (global variables) but I can't get it to work right!

I know how to make a timer count. but what I don't understand it won't show 5:00 but instead it shows 0 & then it starts to count like 1,2,3,4,5 instead of showing 5:00 first & then it must count from 5:00 to 0.

Can anybody maybe make a cap file to show me how it's done?

many thanks.

D
Dewaldt2011-10-11 11:37:09
B
3
G
2
Posts: 40
Reputation: 780

Post » Wed Oct 12, 2011 12:01 am

Make a global variable named Time, set it to 5 on start of layout.

Put an Always event that says:
Set Globlal Variable: global variable Time - Time Delta

Put an global variable condition event and do:
When global variable Time <= 0
>Close aplication

B
22
S
7
G
5
Posts: 90
Reputation: 3,430

Post » Fri Oct 14, 2011 5:00 pm

Thanks
B
3
G
2
Posts: 40
Reputation: 780


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests