> For the complete documentation index, see [llms.txt](https://docs.sandbox.game/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sandbox.game/en/creator/game-maker/docs/behaviours/movement/projectile.md).

# Projectile

New feature introduced with Game Maker 0.10.

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Launch an object at a custom speed and trajectory. Send a message when the object collides with specified target objects.</td><td><a href="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2FHDyHmjFse3hMjeEOjK8q%2FGM%20Projectile%20behavior%20sm%20opt.gif?alt=media&amp;token=b884078a-3928-4fe7-92af-285bdb845cfd">GM Projectile behavior sm opt.gif</a></td></tr></tbody></table>

{% hint style="info" %}
[Build Singleplayer & Multiplayer Logic](/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic.md) - about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components.
{% endhint %}

## <img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2Fk7kymlTwMbPytgwSwnBP%2Fimage.png?alt=media&amp;token=a8c8f87f-f834-496c-9cb0-89361526ea6c" alt="" data-size="line"> Projectile

{% hint style="info" %}
Use an [Asset Spawner](/en/creator/game-maker/docs/behaviours/modifiers/asset-spawner.md) behaviour to trigger a projectile to launch more than once in your Experience. Set **Start with Experience** to true to launch the projectile whenever spawned.
{% endhint %}

* Set force, trajectory, gravity on/off, collider size, collision target, VFX, and visibility of the trajectory
* Send a message with precision when the projectile touches a collision target
* Customize Visual FX
* Use [**Asset Spawner**](/en/creator/game-maker/docs/behaviours/modifiers/asset-spawner.md) to spawn projectiles or combine with other logic for innovative gameplay

### Communications

| <p><strong>Inputs:</strong><br>One or more messages</p> | <p><strong>Outputs:</strong><br>One message sent upon collision (new <strong>CollidedActors</strong> Broadcast Type)</p> |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |

### Use Cases

* High or low speed projectile use cases
* Communicating messages when ranged collisions with specific targets are achieved (including teams, tags, etc)
* Player decision making using visible trajectories

{% hint style="info" %}
Use an[ **Asset Spawner**](/en/creator/game-maker/docs/behaviours/modifiers/asset-spawner.md) behaviour to spawn an object with [**Projectile**](/en/creator/game-maker/docs/behaviours/movement/projectile.md) behaviour applied.
{% endhint %}

### Parameters

<figure><img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2FPsnHVeO1RQKXyMfefuiU%2Fimage.png?alt=media&amp;token=a51018c2-7344-41eb-b222-3567dcc72f44" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The parameter **Is Visble During Game** is a toggle to turn on/off the blue line or arc of the projectile's motion. Toggle it on as aim assist for projectiles that are spawned from movable objects.
{% endhint %}


---

# 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.sandbox.game/en/creator/game-maker/docs/behaviours/movement/projectile.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.
