W
Wyverdan
Guest
Hi I'm having a little trouble finding the right (and working) solution for a "stacking game".
Basically I have some dragable blocks that needs to be stacked in the correct order. These blocks are taking from an array. The first block is Hydrogen (H) with a value of 1, the second is Helium (He) with a value of 2, the third is Lithium (Li) with a value of 3 and so forth.
10 element blocks are chosen and then I need to stack them in a grid, heaviest first from the bottom.
My question is how would that work? How do I get Gamemaker to know, what the heaviest of the 10 elements available is?
And how do I make it know that in that particular instance, which element is the 9th heaviest and thus go on top of number 10?
Basically I have some dragable blocks that needs to be stacked in the correct order. These blocks are taking from an array. The first block is Hydrogen (H) with a value of 1, the second is Helium (He) with a value of 2, the third is Lithium (Li) with a value of 3 and so forth.
10 element blocks are chosen and then I need to stack them in a grid, heaviest first from the bottom.
My question is how would that work? How do I get Gamemaker to know, what the heaviest of the 10 elements available is?
And how do I make it know that in that particular instance, which element is the 9th heaviest and thus go on top of number 10?