How do I make my score appear ?

Get help using Construct 2

Post » Tue Mar 28, 2017 1:19 am

help!!!
B
3
Posts: 2
Reputation: 179

Post » Tue Mar 28, 2017 1:23 am

Could you be any more vague?

Make sure the text object is not set invisible
Make sure the text box is large enough to hold the text length/size
Make sure the "Score: "&MyScore is showing the variable you made to store score
Make sure you have updated the text box with the score var value.. ie Every Tick - Set text "Score: "&MyScore
Etc
Etc
Etc
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Tue Mar 28, 2017 1:41 am

You need a global variable to hold your score and a text to show the score on the layout.

Make a text and call it score and put the word "score" in it as a place holder. Put in on the layout.

In your events make a gobal variable by right clicking anywhere on the even sheet and click create global variable and call it SCORE.

In your events write this event.

Every Tick: Set Text Score to SCORE

Do not use quotations marks just the global variable name SCORE

That will show the global variable in the text when you run the game.

To change the SCORE variable you can add or subtract a number from the variable.

On Player Collides with Object: Add to SCORE +1

That can be any event you want to keep score of.

Now every time the player collides with an object the variable adds 1 and that is shown in the score text Every Tick.

That is the basics of making a score for your games.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,830


Return to How do I....?

Who is online

Users browsing this forum: SnipG and 8 guests