here's how I would do it:
create an actor variable ("order").
Code for every card on draw actor:
- Code: Select all
ChangeZDepth("Event Actor", order/10);
Now you can control every individual card by using the "order" variable (...) .
To shuffle the cards:
Card -> Create Actor -> Script editor ->
- Code: Select all
order = rand(10); // 0 is at the bottom of the pile, 10 is at the front.
Also this has the advantage that you can change the order of the card right in the middle of the game (depending on what you do with it).