> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction.md).

# Gameplay and interaction

Core gameplay mechanics and player interactions.

Core gameplay mechanics and player interactions.

| Example                                                                                                                                               | What it demonstrates                                                             | Maintained by | Tags                                   | Source                                                                                                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [Input modifier](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction/input-modifier.md)                                 | Changing or constraining player movement input in part of a scene.               | Decentraland  | `movement`, `input`, `player`          | [Open scene](https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/0,1-input-modifier)         |
| [Particle system](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction/particle-system.md)                               | Fire, smoke, sparks, snow, and other particle effects.                           | Decentraland  | `particles`, `effects`, `visuals`      | [Open scene](https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/0,7-particle-system)        |
| [Pointer lock control](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction/pointer-lock-control.md)                     | Capturing mouse input for custom controls.                                       | Decentraland  | `input`, `mouse`, `camera`             | [Open scene](https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/31,20-pointer-lock-control) |
| [Raycasting and collider layers](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction/raycasting-and-collider-layers.md) | Pointing at scene geometry and controlling which colliders react to a raycast.   | Decentraland  | `interaction`, `raycast`, `collision`  | [Open scene](https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/77,-1-raycast-unit-tests)   |
| [Trigger areas](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction/trigger-areas.md)                                   | Detecting players entering and leaving areas, including collider-based triggers. | Decentraland  | `interaction`, `triggers`, `collision` | [Open scene](https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/75,-9-trigger-areas)        |
| [Zombie Attack](https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction/zombie-attack.md)                                   | A complete, playable game scene with enemies and scoring.                        | Decentraland  | `game`, `complete-scene`, `score`      | [Open scene](https://github.com/decentraland/sdk7-goerli-plaza/tree/main/zombie-attack)                    |

[Browse all example scenes](https://docs.decentraland.org/creator/tutorials-and-examples/examples.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/tutorials-and-examples/gameplay-interaction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
