Card Shuffle and Deal
architectpianist
Member Posts: 21
Hi,
I'm making a game where the computer spawns 24 cards out of sight, then deals them to certain places on the screen. They are each assigned a random back value, which is fine. And I have a global attribute called "CardsSpawned" which tells how many cards have been spawned, and depending on how many cards have been spawned, each card will know where to go, supposedly. But it doesn't work - I think it's because the "CardsSpawned" changes every second, making each one move to the next one instead. Any ideas on how I can deal each card to a certain place without the cascade?
Thanks!
I'm making a game where the computer spawns 24 cards out of sight, then deals them to certain places on the screen. They are each assigned a random back value, which is fine. And I have a global attribute called "CardsSpawned" which tells how many cards have been spawned, and depending on how many cards have been spawned, each card will know where to go, supposedly. But it doesn't work - I think it's because the "CardsSpawned" changes every second, making each one move to the next one instead. Any ideas on how I can deal each card to a certain place without the cascade?
Thanks!