> For the complete documentation index, see [llms.txt](https://docs.thunkable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thunkable.com/gaming/gaming-blocks/events.md).

# Events

## Canvas&#x20;

### When Canvas Loads

![](/files/-MABXHB3DhD2pxLYICuI)

&#x20;Program an action after the canvas loads.

### When Canvas Touched

![](/files/-MABXP4m9HtbESq2mzqR)

Program an action when the user touches the canvas

## Sprites

Please note, that for the sprite events, event handlers can be configured to work with an entire type of sprite or just with one specific sprite.&#x20;

![](/files/-MABZNeNMhOl2DRYRSjg)

### Sprite Clicked&#x20;

![](/files/-MABYVLX_PIEmBQqacWB)

This event triggers when the sprite is clicked.

### Collision with Sprite&#x20;

![](/files/-MABYbQdlei-aaYbrql3)

This event triggers when the two sprites collide.

### Collision with Edge&#x20;

<figure><img src="/files/b1kooRQOlaPRekiAceYY" alt=""><figcaption></figcaption></figure>

This event triggers when the sprite collides with the defined edge.

### Sprite Dropped

![](/files/-MABYuy1oXPvBSVvER8J)

This event triggers when the user stops dragging the sprite.

##
