Runs the script when the object is tapped.

The difference to the block "When stage tapped" is that "When tapped" is specific to individual sprites or objects, while "When stage is tapped" applies to the entire screen.

when-tapped.png

Example

By touching the object it will get bigger.

When tapped Example

Result

Download

When tapped Result