Excellent implementation - really feels like a card shuffle. Mind showing your events for it?
If I may comment on the game - the moment when you see the cards feels a little short, mainly because you are not prepared for it, perhaps add a "Ready?" there after the shuffed and start after a click. Also I would make the sounds about 1/3 in length. I would also add some drop shadows to th objects on the table to add some dimension.
Hello!! First of all, thanks for your help and your comments!!
I'm working in this mini-game with my bf, we are using it to make some tests, so the sounds are provisional (from the free bundle of scirra! hahaha), but you are right, they are too long, you made us think about the "ready?" questions, it seems a great idea so we provably will implement it in next versions. In other hand.... I will work a little more on graphics since some of them have drop sadow (like the cards or the glasses) and other doesn't, they are mainly from this free to use bundle:
http://medialoot.com/item/flat-statione ... ms-mockup/
Also the card images are from this:
https://dribbble.com/shots/1380706-Free-Flat-Icons-2
(we will credit in the ended version, of course!)
When we have the ended version we will post the complete .capx full commented (in spanish, sorry for that...) but by the momment, to do this "card shuffle" animation, as I told you before:
- we start from the deck position, creating all the cards, also we allready have the final position of each card on an array. As you proposed we store those values on instance variables on the card, also we have other instance variables witch indicates the card order to shuffle, and another witch sais what frame to show when the cards are facing the images (the diferent images are all stored in animation frames).
these are the events:
NOTES:
gNumeroCartas are the total number of cards we are goint to show, gNumeroCartas and gNumeroCartas2 are the same value.
esEsta is the local variable witch indicates the order to shuffle.
cartaCaraFrame is the local variable witch indicates the frame to show in the face of the card.