I started working on a card game and wanted a simple way of simulating flipping a card over, without having to draw several animation frames for each card image. Here is what I came up with.
Also put together a shuffle routine (not completely random, but it still does a decent job of mixing up the cards). The shuffle behaviors are on the "shuffle" label.
Thought I'd post this to the Hub for anyone out there who might also be working on a game with cards.