A shape is an invisible zone on the map (it can be made visible, but not too interesting), which allows to trigger actions if you enter or leave this zone. The shape can be fixed or it can move on the map.
It is also possible to attach an area to a player/event. For example, create a vision system
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"RPGJS","colors":{"primary":"#1f7aec","light":"#59a5ff","dark":"#1559ac"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"newbot","hasAudioNarration":false,"actualSubdomain":"newbot","customDomains":["v5.rpgjs.dev"],"gitSource":{"type":"github","owner":"rsamaium","repo":"rpg-js","deployBranch":"v5","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af1ecd034be7c1d8321eb7c","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Guide","count":71},{"language":"default","tag":"API","count":32},{"language":"default","tag":"Gameplay","count":19},{"language":"default","tag":"Player API","count":16},{"language":"default","tag":"GUI","count":15},{"language":"default","tag":"Maps \u0026 World","count":13},{"language":"default","tag":"Advanced","count":11},{"language":"default","tag":"Hooks","count":9},{"language":"default","tag":"Quick Start","count":8},{"language":"default","tag":"Components","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guide/create-shape","slug":"/guide/create-shape","pageMetadata":{"title":"Create Shape","description":"Guide for Create Shape in RPGJS.","href":"/guide/create-shape"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Guide for Create Shape in RPGJS.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`create-shape`,children:`Create Shape`}),`\n`,_jsx(Heading,{level:`2`,id:`why-`,children:`Why ?`}),`\n`,_jsx(_components.p,{children:`A shape is an invisible zone on the map (it can be made visible, but not too interesting), which allows to trigger actions if you enter or leave this zone. The shape can be fixed or it can move on the map.\nIt is also possible to attach an area to a player/event. For example, create a vision system`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Shape","description":"Guide for Create Shape in RPGJS.","href":"/guide/create-shape"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create Shape","slug":"create-shape","depth":1,"children":[]},{"title":"Why ?","slug":"why-","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"newbot","siteName":"RPGJS","title":"Create Shape - RPGJS","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-27T15:11:45.399Z","originalFileLocation":"guide/create-shape.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Guide for Create Shape in RPGJS.\">\u003cmeta data-mint-head name=\"application-name\" content=\"RPGJS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/newbot/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/newbot/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/newbot/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/newbot/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Shape - RPGJS\">\u003cmeta data-mint-head property=\"og:description\" content=\"Guide for Create Shape in RPGJS.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"RPGJS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://v5.rpgjs.dev/guide/create-shape\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://newbot.mintlify.site/_mintlify/api/og/v2?division=Maps+%26+World\u0026amp;title=Create+Shape\u0026amp;description=Guide+for+Create+Shape+in+RPGJS.\u0026amp;theme=3dd04698c9410ad357c55b0e\u0026amp;signature=0f0b8b5c3ceedd77fa8846618d73755e39563f80053b214b4b0dcef92877b099\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Shape - RPGJS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Guide for Create Shape in RPGJS.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://newbot.mintlify.site/_mintlify/api/og/v2?division=Maps+%26+World\u0026amp;title=Create+Shape\u0026amp;description=Guide+for+Create+Shape+in+RPGJS.\u0026amp;theme=3dd04698c9410ad357c55b0e\u0026amp;signature=0f0b8b5c3ceedd77fa8846618d73755e39563f80053b214b4b0dcef92877b099\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/newbot/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"RPGJS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1f7aec\">\u003clink data-mint-head rel=\"canonical\" href=\"https://v5.rpgjs.dev/guide/create-shape\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guide/create-shape.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://v5.rpgjs.dev/#organization\",\"name\":\"RPGJS\",\"url\":\"https://v5.rpgjs.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://v5.rpgjs.dev#website\",\"name\":\"RPGJS\",\"url\":\"https://v5.rpgjs.dev\",\"publisher\":{\"@id\":\"https://v5.rpgjs.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://v5.rpgjs.dev/guide/create-shape#webpage\",\"url\":\"https://v5.rpgjs.dev/guide/create-shape\",\"name\":\"Create Shape\",\"description\":\"Guide for Create Shape in RPGJS.\",\"dateModified\":\"2026-02-27T15:11:45.399Z\",\"isPartOf\":{\"@id\":\"https://v5.rpgjs.dev#website\"},\"breadcrumb\":{\"@id\":\"https://v5.rpgjs.dev/guide/create-shape#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://v5.rpgjs.dev/guide/create-shape#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Maps \u0026 World\",\"item\":\"https://v5.rpgjs.dev/tiled\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Shape\",\"item\":\"https://v5.rpgjs.dev/guide/create-shape\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://v5.rpgjs.dev/guide/create-shape#article\",\"headline\":\"Create Shape\",\"name\":\"Create Shape\",\"description\":\"Guide for Create Shape in RPGJS.\",\"url\":\"https://v5.rpgjs.dev/guide/create-shape\",\"mainEntityOfPage\":{\"@id\":\"https://v5.rpgjs.dev/guide/create-shape#webpage\"},\"dateModified\":\"2026-02-27T15:11:45.399Z\",\"publisher\":{\"@id\":\"https://v5.rpgjs.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://v5.rpgjs.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"RPGJS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"RPGJS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guide/create-shape.md","siteName":"RPGJS","nav":{"global":null,"tabs":[{"tab":"Guide","groups":[{"group":"Quick Start","root":{"title":"Quick Start","href":""},"pages":[{"title":"Quick Start","href":"/index"},{"title":"Quick Start","href":"/guide/quick-start"},{"title":"Getting Started","href":"/guide/get-started"},{"title":"Structure","href":"/guide/structure"},{"title":"Create your first map","href":"/guide/create-your-first-map"},{"title":"Create hero in map","href":"/guide/create-hero-in-map"},{"title":"Create spritesheet","href":"/guide/create-spritesheet"},{"title":"Put an MMORPG online","href":"/guide/deploy-mmorpg"}]},{"group":"Maps \u0026 World","pages":[{"title":"Using TiledMap with RPG-JS","href":"/tiled/index"},{"title":"Create a world","href":"/guide/create-world"},{"title":"World Maps API","href":"/guide/world-maps"},{"title":"provideLoadMap","description":"Guide for provideLoadMap in RPGJS.","href":"/advanced/provide-load-map"},{"title":"Create Shape","href":"/guide/create-shape"},{"title":"Display Animations","description":"Guide for Display Animations in RPGJS.","href":"/guide/display-animations"},{"title":"Emotion Bubbles","href":"/guide/emotion-bubble"},{"title":"Client Visuals","href":"/guide/client-visuals"},{"title":"Client interactions","href":"/guide/interactions"},{"title":"Spritesheets Guide","href":"/guide/spritesheets"},{"title":"Lighting","href":"/guide/lighting"},{"title":"Time Manager","href":"/guide/time-manager"},{"title":"Weather","href":"/guide/weather"}]},{"group":"Components","pages":[{"title":"Components overview","href":"/guide/components-overview"},{"title":"Sprite Components Guide","href":"/guide/sprite-components"},{"title":"Authoritative Sprite Components","href":"/guide/component"},{"title":"Prebuilt Components","href":"/guide/prebuilt-components/index"},{"title":"Light Halo Component","href":"/guide/prebuilt-components/light-halo"}]},{"group":"Gameplay","pages":[{"title":"Create an event","href":"/guide/create-event"},{"title":"Event Modes: Shared vs Scenario","href":"/guide/event-modes"},{"title":"Event Touch and Map Variables","href":"/guide/event-touch-map-variables"},{"title":"Movement System Guide","href":"/guide/create-movement"},{"title":"Projectiles","href":"/guide/projectiles"},{"title":"Move Routes","href":"/guide/move-routes"},{"title":"Create database","href":"/guide/create-database"},{"title":"Scripts","href":"/guide/scripts"},{"title":"Items System","href":"/guide/items"},{"title":"Loot","href":"/guide/loot"},{"title":"Skill and item hotbar","href":"/guide/hotbar"},{"title":"Save and load player data","href":"/guide/save-load"},{"title":"Internationalization","href":"/guide/i18n"},{"title":"Synchronization between Server and Client","href":"/guide/synchronization"},{"title":"Action Battle System","href":"/guide/battle-ai"},{"title":"Create sounds","href":"/guide/create-sounds"},{"title":"Sounds Guide","href":"/guide/sounds"},{"title":"Testing with @rpgjs/testing","href":"/guide/testing"},{"title":"Creating Modules in RPGJS","href":"/guide/create-module"}]},{"group":"GUI","pages":[{"title":"GUI overview","href":"/gui/index"},{"title":"Customize GUI themes","href":"/gui/theming"},{"title":"Title Screen","href":"/gui/title-screen"},{"title":"MMORPG Account","href":"/gui/account"},{"title":"Character Select","href":"/gui/character-select"},{"title":"Dialog Box","href":"/gui/dialog-box"},{"title":"HUD","href":"/gui/hud"},{"title":null,"href":"/gui/mobile"},{"title":"Prebuilt GUI Contracts","href":"/gui/prebuilt-contracts"},{"title":"Chat module","href":"/gui/chat"},{"title":"Calendar module","href":"/gui/calendar"},{"title":"Attach GUI to Sprites Guide","href":"/guide/gui/attach-gui"},{"title":"Engine Injection in .ce Files","href":"/gui/engine-injection"},{"title":"Optimistic GUI Actions","href":"/gui/optimistic-actions"},{"title":"Vue.js 3 Integration with RPGJS GUI System","href":"/gui/vue-integration"}]},{"group":"Advanced","pages":[{"title":"Framework Philosophy","href":"/philosophy"},{"title":"Roadmap","href":"/roadmap"},{"title":"Migrate from v4 to v5","href":"/migration/v4-to-v5"},{"title":"Custom Gameplay Rooms","href":"/advanced/custom-gameplay-rooms"},{"title":"Advanced Signe Extension Points","href":"/advanced/signe-extension-points"},{"title":"MMORPG entries","href":"/advanced/mmorpg-entries"},{"title":"Node server in production","href":"/advanced/node-server-production"},{"title":"Cloudflare server in production","href":"/advanced/cloudflare-server-production"},{"title":"Latency Simulation","href":"/advanced/latency-simulation"},{"title":"Packet Loss Simulation","href":"/advanced/packet-loss-simulation"},{"title":"Smooth Movement of Other Players","href":"/advanced/remote-smoothing"}]}]},{"tab":"API","pages":[{"title":"API","href":"/api"}]},{"tab":"Studio","pages":[{"title":"Studio","href":"/studio"}]}]},"basePath":"","title":"Create Shape - RPGJS","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}