How to structure your prompts for better results with Coplay
Technique | How to use it | Example |
---|---|---|
Be specific | Include details about your goal | ”Create a script that makes the camera follow the player with smooth damping and height offset” |
Use sections | Separate different parts of your request | ”Context: I’m making a 2D platformer. Question: How should I handle wall jumping?” |
Provide context | Explain your project setup | ”I’m using Unity 2022.1 with the URP rendering pipeline and need help with…” |
Initial: “Create a player movement script” Follow-up: “That’s good, but can you modify it to include sprinting when the Shift key is pressed?”
General Term | Unity-Specific Term |
---|---|
3D object | GameObject |
Property | Component, Parameter, or Field |
Screen | Scene, Game View, or UI Canvas |
Code file | Script or MonoBehaviour |
You: I’m trying to make an enemy that patrols between waypoints. Can you help me with the script? Coplay: [Provides basic patrol script] You: Thanks! Now how can I make the enemy detect and chase the player when they get close? Coplay: [Builds on previous script to add player detection and chase behavior] You: One last thing - how do I make the enemy return to patrolling when it loses sight of the player? Coplay: [Completes the AI behavior with returning to patrol functionality]
“Stop - that’s not what I need. Let me clarify…”Be direct when you’re not satisfied:
“Before you start coding, can you outline your approach to building this inventory system?”
MCP (Model Context Protocol) servers provide specialized tools that can extend Coplay’s capabilities beyond Unity development.