Visual Timer

Get help using Construct 2

Post » Sun Sep 28, 2014 8:27 pm

Hi, this may be a newbie question, but how do I set up a timer that can be displayed on-screen?
Also, once the timer reaches 0, I want the game to compare the instance variables of the points held by the 2 players, and depending on who wins, go to the respective "Player X wins" layout.

How do I do this?
Thank you
B
7
S
1
Posts: 33
Reputation: 489

Post » Sun Sep 28, 2014 8:47 pm

This sounds like a good idea for a new tutorial.

Edit:
New tutorial up!
Create a Visual Count Down

@RemasteredGames As for your specific question. You will need to compare two variables when the countDownTime = 0
Then have a sub event comparing the Player1 and Player2 scores.
If Player1score is greater than Player2score, go to Player1WinsLayout.
Else
Go to Player2WinsLayout.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Thu Oct 02, 2014 8:12 pm

Tekniko wrote:This sounds like a good idea for a new tutorial.

Edit:
New tutorial up!
Create a Visual Count Down

@RemasteredGames As for your specific question. You will need to compare two variables when the countDownTime = 0
Then have a sub event comparing the Player1 and Player2 scores.
If Player1score is greater than Player2score, go to Player1WinsLayout.
Else
Go to Player2WinsLayout.


Brilliant, thank you ever so much!
B
7
S
1
Posts: 33
Reputation: 489


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 14 guests