Tile Based Games

Hi,

First of all let me confess that I m an intermediate action script programmer who had just got his hands on Macromedia Flash Mx2004 game design demystified, that was highly come in recomendation by some of the folks here is highly remarkable and must be taken for granted. (Although i know its Flash CS5 around here now and AS has grown up to AS3, but concepts never change)

Excellent! I know off no such book at Internet (I have also read Flash Mx Action script for fun and games, Flash games studio and Flash Mx 2004 Game development) that presents such a quality material.

Now lets come to the point. Although the authour covered a lot of ground about using tiles in flash games, nevertheless it can not be said complete anyways.

For example, you know in a tile based game like Mario Bros(the fav one), Mario is not limited to just walkable and not-walkable cells, as covered in the book example files. There are the tiles that can be
jumped in to break, tiles to get into to reveal coins and flowers etc.

How would you tackle such a scenario? I mean, how would add these tiles to your map so after been broken by the hero you get an area to walk in?

What’s initially in mind is that you have to have two map arrays? one will hold information about tiles that can be walked on or not and the other contain the objects like tiles to break and tiles with the coins when you run into them?

Another trick would be to attach a walkable tiles on the spot when a tiles is broken by the hero but it may or may not match with the background image. I hope you have got my point.

These are just my assumptions and i know i m not an an expert. I would be an honor for me if you reply to me with an example(if you dont mind) or atleast put on the right path.

Thank YOu in advance:book: