I hope this is useful for your code and I would like credit if you use it from here. Tapping works on cat or off cat.
This basically just makes something (the sprite) act how it would when it is clicked but instead clicking anywhere on screen (stage) also works