Check a particular touch is on an object

I’m keeping track of the first touch on the screen by storing the LastTouchId() into a variable when a new touch has started and there is no current value in the variable (the variable is set to -1 when the first touch has ended)

I’d like to track only that touch, so any subsequent touches are ignored.

What’s the best way to check that an object has been touched and is that the Id of that touch matches the one in the variable?

Or alternatively, how do I only allow for one touch to be registered in the game?

Don’t use Multitouch, just use the two conditions click/touch started and cursor on object.

That’s an option, though it won’t stop the cursor jumping to where the second touch has occurred. I may just have to live with that one though. Thanks for the response.