Platform Games scroes

Get help using Construct 2

Post » Fri May 25, 2012 1:44 am

Ok so im making a platform game... i want a counter to show the player how many times they died... ( as the play) how can i accomplish this
B
5
Posts: 8
Reputation: 467

Post » Fri May 25, 2012 6:26 am

Anything?
B
5
Posts: 8
Reputation: 467

Post » Fri May 25, 2012 6:50 am

Well, for each time the player dies, you can add 1 to a global variable (deaths, in this case). Then put in a textbox that says something like "Deaths: " & deaths (whatever the global variable's name is).
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Thu Jun 28, 2012 7:26 pm

Idk how to display variables... can you show me an example?
B
5
Posts: 8
Reputation: 467

Post » Thu Jun 28, 2012 7:43 pm

Make a "Text" object. Then in the event sheet it's just:

[code]+Every Tick:
->Text Object: Set text to "Deaths: " & VariableName[/code]

The process is described on page 6-7 of the Beginner's guide to Construct 2 tutorial.Nimtrix2012-06-28 19:45:51
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Jun 28, 2012 8:14 pm

@Nickfost
Have you looked at my Building a platform game - a beginner's guide? It shows you how to use global variables to keep and display scores.
B
105
S
20
G
12
Posts: 549
Reputation: 20,320


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests