# Generating NPC characters

Here's a quick tutorial on how to generate NPC Characters on Morphic:

{% embed url="<https://youtu.be/Ekzfvg2a_Co>" %}

1. Once your [Style Model is trained](https://morphic.com/docs/game-design/train-a-style-model), open a new file on Morphic&#x20;
2. In the prompt bar, describe the type of character you want to generate
3. From the Style Model dropdown on the prompt bar, select your trained model to match your game’s visual style
4. Click “Generate” to create your assets
5. Choose the generated character you’d like to use in your game
6. Use the Segmentation or Layers feature to separate the character from the background
7. Use Include Points to mark the key character and its elements that you want to extract
8. Add Exclude Points around the background to help isolate and cleanly separate those characters from the scene
9. Click the “Segment” button to separate the selected characters from the background
10. Move the separated characters freely, or place them in another frame as needed
11. Export the characters in your preferred format (currently, we support PNG, JPEG, or WebP)

That’s how you generate NPC Characters, separate them cleanly from the background, and export them for use in your project.

***

If you have any trouble or have any questions, feel free to reach out. We're happy to help. Write to us at [**support@morphic.com**](mailto:support@morphic.com)**.**


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://morphic.com/docs/game-design/generating-npc-characters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
