How do I sort arrays (highest to lowest value) already enter

Get help using Construct 2

Post » Sat Jul 18, 2015 11:30 pm

Hello, I work in a card game where the player chooses the cards.
Each card has a level and players select four cards.
Then, the player clicks and goes to the second layout. On this screen, the cards must be arranged from the highest to the lowest level.
How do I sort them according to the cards chosen?
I wish the player was free to choose the cards he wanted and the game automatically arranged the highest to the lowest level.
I can already enrolls them in arrays, but does not list them in descending order.
I hope I have written in English correctly. tks!!!
B
43
S
6
Posts: 79
Reputation: 4,235

Post » Sun Jul 19, 2015 12:04 am

https://www.scirra.com/manual/108/array

There's an array sort action, so if you have a specific array just for the player's hand of cards, that should be sortable with that.
B
11
S
2
G
1
Posts: 79
Reputation: 842

Post » Sun Jul 19, 2015 6:46 pm

I want to know how to order multiple values, not just one.
B
43
S
6
Posts: 79
Reputation: 4,235


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 2 guests