Hey everyone,
I’m fairly new to actionscript and flash for that matter— I’m trying to create a basic Mr.Driller-type game… Basically I have it right now that when you click the bricks on screen it will check the brick above, below, left and right to see if the colors match, if they do they tween off-screen and everything stays in place. It’s all done recursively and I’m pretty happy with it so far as it can handle all shapes… but I’ve hit a wall.
I’m attempting to get it so when you click on a brick on any level all the bricks in the columns above fall down in it’s place. The grid is set up in a 2-d array. So I attempted swapping the brick up to the top row and moving the rest down but I’m getting some wacky stuff happening.
If someone could help that would be great. If they need me to post the code or anything up that would be fine too. Thanks for anyone’s help!!