Page 1 of 1

PuzzleImage related issues

Posted: 21 Apr 2016, 07:24
by Harpal
hi admin,
i am using puzzle image game script in a site ( https://coursesweb.net/javascript/image- ... ame-script ), and facing some problem.
When i complete the game before the finish time , then i want to call a function that will reset the timer to 0.
So can that be done in that script.

Code: Select all

puz1.solved = function(){
  alert('Solved in '+ puz1.clicks +' clicks.');
// function to stop the timer needed  here.
}

PuzzleImage related issues

Posted: 21 Apr 2016, 11:57
by Admin
Hi
What is not working? That puzzle-image script is not with timer. If you have a timer, just add the instruction to reset it in the function of puz1.solved().
I don't know what timer you refer.