I can’t really explain this that well, so read this, specifically the “tile animations” portion of the tutorial under the second post. It’s really not too difficult once you figure it out.