Hi all! I am posting an .fla of what I am trying to do, perhaps someone can help me figure it out.
I am creating a card game, and at the end of the game if the player wants to replay the game, I want my
cards to shuffle. What I have managed so far in this demo file, is when the game starts the movie clips
are placed in certain positions on the stage, and when you press the button instead of shuffeling…all
movie clips are placed behind the other and they all move along. What I want instead is on each mouse
press, the cards to swap places and only one movie clip per place! Appreciate anyone’s wisdom!
P.s. I HAVE flash Mx…NOT…flash MX 2004.
system
September 28, 2004, 8:53pm
2
Sounds like a job for arrays to me.
system
September 28, 2004, 8:55pm
3
Evelyne1976:
Hi all! I am posting an .fla of what I am trying to do, perhaps someone can help me figure it out.
I am creating a card game, and at the end of the game if the player wants to replay the game, I want my
cards to shuffle. What I have managed so far in this demo file, is when the game starts the movie clips
are placed in certain positions on the stage, and when you press the button instead of shuffeling…all
movie clips are placed behind the other and they all move along. What I want instead is on each mouse
press, the cards to swap places and only one movie clip per place! Appreciate anyone’s wisdom!
P.s. I HAVE flash Mx…NOT…flash MX 2004.
I made this for something else but i think it basically does what you are looking for.
Puts all the _x,_y values into an array, shuffles the array and then tweens to the new array values.