I'm making a simple board game in Flash (using Actionscript 3), and I'm not sure how to get the counter/board piece to go around the board. Its really simple, all that needs to happen is to roll a dice (thats the easy part, obviously) and then get the piece to move that many places along the board. I've seen a few ways to do this, but ive struggled to follow exactly how to do them and i would like to know the most effective way. Any help would be greatly appreciated.
Comments
my first question is how does the board look like? I mean, it is like the monopoly or like the checkers?
If the board is like the monopoly (you always move in the same direction) you could generate one tile at a time.
So first you load the first square, and this square generates the next one, and this one, the next one, and so on.
when you threw the dice you can make a for loop to go through the squares.
void move()
{
}