add a "for each coin" as a second condition with your "left button clicked on coin"
Yeah. I was about to say that.
Develop games in your browser. Powerful, performant & highly capable.