How do I make a Scoreboard with multiple values?

Get help using Construct 2

Post » Tue Apr 07, 2015 11:56 am

Hello,

I'm trying to create a Scoreboard for my game. This is what i have now:
Image

it does work so far. But my Scoreboard looks like this:

Image

What i want is to set Score and heigth accordingly.
Score is the points the player collected in the game, heigth is how heigth he jumed and final is Score+Heigth(for now).
How would i do that? I cant create two extra arrays to store the other values because of the sorting.
Any idea?

Thanks i advance
Sven
B
5
Posts: 23
Reputation: 261

Post » Wed Apr 08, 2015 7:23 pm

You need to store the height in the same array object but using Y.

So like..

array( X, 0 ) = score .. you got that
array( X, 1 ) = height

and don't forget to set the Height (Y ) of the Array object to 2.

Here's a capx to demonstrate

Run that, then press S to sort... then SPACE to display the new results
B
15
S
5
G
7
Posts: 876
Reputation: 5,650

Post » Wed Apr 08, 2015 7:48 pm

Ah yes of course, im an idiot :D
Thank you very much for your help, I really appreciate it :)
B
5
Posts: 23
Reputation: 261

Post » Wed Apr 08, 2015 8:05 pm

Oh yeah just noticed you need the final score storing too..

array( X, 2 ) = finalscore

REMEMBER to set the Array object size to 3 now. Forgetting to set this, can cause much headaches... I should know ;p
B
15
S
5
G
7
Posts: 876
Reputation: 5,650


Return to How do I....?

Who is online

Users browsing this forum: imothep85, KTML5 and 1 guest