Organize table data in increasing order
inferogroup
Member Posts: 1
Hello everyone, I have a problem and I hope that someone can help me: I created a random map generator that follows the datas in a table. The problem is that sometimes the order of the actor layers is wrong and I decided to solve this just organizing the data in crescent Y values before they spawn. But I don't really know how to do it: I know that I must compare every single Y with all the other Y values of the table, but I don't know how. Any Ideas? Thank you
Comments
Sorting is something GameSalad doesn't do well in my opinion. A SortTable() function would be really useful. Some people have created sorts that do the job... if you search you should be able to find a couple examples.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User