timidou Posted May 21, 2015 Share Posted May 21, 2015 Hello, I'm making a freecell with phaser for discover this game framework. For terminate my little project, i have an question about best practice! My question: I have 52 images showing the front of the card and 1 showing the back of the card, so, how i can return the front card with an animation (very basic) with making a sprite for all 52 card or with groups ? Thank's for all :-)the back of the card Link to comment Share on other sites More sharing options...
rich Posted May 21, 2015 Share Posted May 21, 2015 It depends how you do the card animation. But one quick and easy way would be to scale the card on its X axis only, so it looks like it "flips" over. Then you only need 1 card back and just position it on the card that is currently flipping over. Link to comment Share on other sites More sharing options...
timidou Posted May 22, 2015 Author Share Posted May 22, 2015 Thank's Rich,I will reply my code when it finishes, so you can tell me if it is clean ;-) Link to comment Share on other sites More sharing options...
Recommended Posts