I need help with game clock

i have a game clock for chess. i made everything right i think and it works on the first tap and then if you touch it, it dosent do anything. if you dont know what a chess clock or game clock is, here: http://en.wikipedia.org/wiki/Chess_clock

Comments

  • GM_PandagamesGM_Pandagames Member Posts: 228
    how do i post my game so people can edit?
  • blue_elephantblue_elephant Member Posts: 505
    Upload game to Dropbox or something and post the link.
  • GM_PandagamesGM_Pandagames Member Posts: 228
    how do people post the zip thingy
  • MantoManto Member Posts: 796
    @GM_Pandagames Attaching a zip file is only for Pro members.
  • GM_PandagamesGM_Pandagames Member Posts: 228
    oh.
  • GM_PandagamesGM_Pandagames Member Posts: 228
    Bump.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited October 2013
    Here's my attempt at a chess clock which is based a little on this site: http://chessclockonline.com/

    Click on any of the clocks to start the game, and to start that clock counting down. Click on the clock again to pause the countdown and to switch players.

    You can change the duration by changing the value in the game.noOfSeconds attribute. 300 is 5 minutes.

    If you use any of it you will need to amend the display so that leading zeros are showing when the seconds are less than 10, and you will need to add in the relevant code for when the timer runs out.

    If you want the clock to count up then start the noOfSeconds at 0 and increment it by one every second instead of deducting one.
  • GM_PandagamesGM_Pandagames Member Posts: 228
    can you make it so it is possible to change the times by a button?
  • GM_PandagamesGM_Pandagames Member Posts: 228
    bump, i have everything right i think and it works only on first click
Sign In or Register to comment.