Hi all, I'm a new programmer doing my best to work on my first basic concept for an RPG. I've got mostly everything sorted, I'm just struggling to figure out how to work out turn order? I've followed Shaun Spalding's video tutorial on turn-based combat, so currently it reads unit_turn_order = array_shuffle(units), but i want it to either be determined by the characters' speed stat (which i can add) or, preferably, enemies take an action after players do. Does anyone have any tips or pointers? I've heard using ds_lists can be a good idea, but I honestly have no idea where to start with those.
Thanks so much!