Sort Array Alphabetically (Solved)

Discussion and feedback on Construct 2

Post » Sat Nov 23, 2013 1:06 am

Thats because Construct 2 "runs" in the direction x -> some y -> even more z

sorting by x will move x, y and z (because it checks for array.at(index) when sorting)
sorting by y will move y and z and leave x in place
sorting by z will move z and leave x and y at place

so to do what you want, use x as your page index and y and z as your 2 dimensional data table. (you can create a new array and fill it with for each xyz oldarray: set newarray at(oldarray.curz,oldarray.curx,pldarray.cury) to oldarray.curvaluemindfaQ2013-11-23 01:10:12
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sat Nov 23, 2013 2:03 am

Interesting. Well I thought it worked perfectly at first but now it sorts some axes I don't want :T Hm.

Edit: Decided to use multiple arrays in a family. Works just as well :)MadFactory2013-11-23 03:24:01
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: JesusJ, Tombas and 12 guests