Search found 2 matches

by GoldenTCat
Thu Dec 26, 2024 2:38 am
Forum: Support and Development
Topic: My table.sort doesn't work
Replies: 2
Views: 132

Re: My table.sort doesn't work

pgimeno wrote: Thu Dec 26, 2024 2:14 am Hello, welcome to the forums!

table.sort is designed to work on sequences (tables with numeric indices), and you're using pairs() to iterate it, which suggests it's either not a sequence, or you should be using ipairs() instead.
oh, I understand now, I didn't know that :o
by GoldenTCat
Thu Dec 26, 2024 1:06 am
Forum: Support and Development
Topic: My table.sort doesn't work
Replies: 2
Views: 132

My table.sort doesn't work

I'm developing a game and the character is divided into parts and I'm trying to make a code that makes the sprites not messed up when the character rotates using table.sort, the problem is that with or without this function it remains messy :shock: part of the code that SHOULD fix the order of the s...