+ 2

Points in a game.

How do I add points in a game by clicking a shape that's moving?

4th Jan 2018, 7:03 AM
Wachira David
2 odpowiedzi
+ 7
<div id=shape onclick=func() > var score=0; function func(){ $("#points").innerHTML=++score; }
4th Jan 2018, 7:30 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
Thanks Brains I'll try it
5th Jan 2018, 7:33 PM
Wachira David