Half a year ago I started working on this game. One of the aspects of it involves clicking a point on the screen and a path made of 32x32 squares will be drawn from its current point to the clicked point.
Well at the time I jsut needed to do a quick prototype so I did something like this.
var g :Graphics = this.graphics; //calculate path blah blah // Draw segment g.beginFill(0x000000, 0.5); g.drawRect(pX, pY, rHeight, rWidth); g.endFill();
That worked perfectly then and simply filled the path with that color. However now I want to break away from a solid color and fill the path with 32x32 .png tiles. If it helps to better visualize picture it similar to an RPG world maker or an RTS level editor.
It’s been a few months since I’ve looked at actionscript so I’m in the process of remembering all that I knew back then so any guidance on how to do this would be helpful.