Posted By
|
Message
|
Rob Sherwood
Registered 20/02/2010
Points 5
|
3rd March, 2010 at 18:53:24 -
I need to take a number that is calculated at the start of a frame, and compare it to five others calculated at the start of frame.
Take the six numbers, sort them from 1-6 highest to lowest, and then assign a global string.
And then display the strings in order of highest to lowest.
This is the last thing I need to do to finish my game, and it is driving me bonkers.
RSherwood
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
3rd March, 2010 at 19:19:26 -
It's a bit of a botch, but the easiest way is just to convert all the values to strings, put a load of "0"s infront, and put them in a list object and (if you tick the box) they'll be automatically sorted by alphabetical order (which is the same as numerical order).
eg. If your values are a maximum of 10-digits long:
List: Add item- Right$( "0000000000" + Str$( Value_A ), 10)
List: Add item- Right$( "0000000000" + Str$( Value_B ), 10)...
If any extension developers are reading this, I have an idea for an extension:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=178558Post178558
Edited by Sketchy
n/a
|
|
|