How do I create a timer.

Get help using Construct 2

Post » Thu Mar 10, 2016 2:20 am

I'd like for a text to display the amount of time elapsed since the user clicked the "go" button, as well as a way to stop the timer if the "stop" button is clicked.
B
5
Posts: 10
Reputation: 247

Post » Thu Mar 10, 2016 4:59 am

This involves using the timer behavior. Before you do any of the following, be sure to set a tag for the timer (i.e "stopwatch") when you use an event to set it, such as on button or key press.

Next, create a text object and every tick, set it to:
<objectname>.Timer.CurrentTime("stopwatch")
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG and 24 guests