Hi Susanne
I'm guessing that you have some image but only one hotspot on the 'correct' image that writes the score.
Like this it would add to the score on each click.
I'd think that you would need to set a variable on page load, it should just have a page scope. This would be set at a value of 0.
Now you need an IF THEN statement, at the on click actions for the hotspot you first add an IF value of the variable=0 continue, add to the score and then set the variable value to 1.
If it's clicked again the IF will see it's already been clicked and not add to the score.
You'd need to make the module linear so that you can't go back to the pages as the variables would reset.
Alternatively use global variables for each hostspot then you could return to the pages and clicking on the hotspot would only add to the score if that variables value was 0.
Hi Susanne
I'm guessing that you have some image but only one hotspot on the 'correct' image that writes the score.
Like this it would add to the score on each click.
I'd think that you would need to set a variable on page load, it should just have a page scope. This would be set at a value of 0.
Now you need an IF THEN statement, at the on click actions for the hotspot you first add an IF value of the variable=0 continue, add to the score and then set the variable value to 1.
If it's clicked again the IF will see it's already been clicked and not add to the score.
You'd need to make the module linear so that you can't go back to the pages as the variables would reset.
Alternatively use global variables for each hostspot then you could return to the pages and clicking on the hotspot would only add to the score if that variables value was 0.