board game in flash

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.


  • 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()

    for (int i = 1; i < diceResult; i++)
           //as each square has generated other square, you could store         //the reference of the next one on a variable
       currentSquare = currentSquare.nextOne;


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion