Results 1 to 2 of 2

Thread: codes for backgammon

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    codes for backgammon

    hi there,
    Please help me with the following question.
    I am triying to write a simple javascript game called simple"backgammon"
    The problem is that I can not make the pieces move.For example I have
    three pieces in slot number-4.What I want is that anytime
    I roll a dice and if dice==4 I want the first piece of that slot move
    +10 pixel (posTop+10) and if again the dice==4,let the second piece move
    +20 and finally if the dice==4 let the third piece move +30
    well I tried some codes but anytime ,say the dice==4 all three pieces moves
    together.How can name the pieces differently so that they move accordingly.

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Could you post your entire code, maybe the file ?
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width