Okay, I’m working on creating a memory game for work, but I’m having a little trouble.
Specifically, I’m trying to work out the following sequence:
- Select first tile. It has an animated flip to reveal the picture.
- Select second tile. It also has the animated flip.
- Wait about half a second.
a. If the tiles match, they disappear and a sidebar slides in from the side.
b. If the tiles do not match, they flip back over (again with the animation).
I’m really close, but I keep running into hitches if you click tiles too quickly, or other minor hiccoughs. I’m starting to think that my entire approach to the problem is flawed.
So my question is this: how would youwork this sequence out? I don’t need any code, just the theory you’d use to keep everything running smoothly. I’d like to keep it object-oriented, and in AS 2.0, but I’m willing to try just about anything within those constraints. So how 'bout it?
Rys