getting around the touchscreen double press that happens - SOLVED

hi, so I’ve now built a shop in my game. You don’t spend real money, just the virtual dollars you earn in the game to buy power ups.

The issue I’m having is that when you click on an item to purchase it will purchase it twice in one tap.

I’ve managed to get around this before with just my jump function the game has, but this time I’m stuck.

I’m just using currenttouch in the touch aspect of main and using a variable to make note of the state of the game e.g Gameover state has button functions different to Ggo (game in motion state).

Any help with this greatly apprectiated!

Mighty Mower version 2 is gonna rock with the new rocket speed mode (power up), lives and music


solved it - Just needed to define

if touch.state == ended