# Problem with objects in phaser

**URL:** <https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210>\
**Category:** Questions\
**Created:** [March 23, 2017, 9:31pm UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210 "2017-03-23T21:31:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauldergaul15](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/pauldergaul15/32/1131_2.png) [@pauldergaul15](https://discourse.mapeditor.org/u/pauldergaul15)\
**Post date:** [March 23, 2017, 9:31pm UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210/1 "2017-03-23T21:31:51Z")

</div>

Hello,  
i’m having a huge problem with Tiled objects in the engine Phaser.  
my Problem is that there is no gid included when I export my project via Json so I cant use the tilemap.createFromeObjects(); function in phaser:  
this deosn’t happen when using insert tile.  
it would be great if somone knew a function in phaser to load in non tile objects or a way to include the gid in the json file.  
(sorry for my bad english i’m german)

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 24, 2017, 7:52am UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210/2 "2017-03-24T07:52:22Z")

</div>

Why do you have the impression that the gid is not included in the JSON export? The JSON export includes all the same information as the TMX export.

For general help with using Phaser you are likely to have more luck asking in their community.

---

<div class="post-metadata">

**Author:** ![pauldergaul15](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/pauldergaul15/32/1131_2.png) [@pauldergaul15](https://discourse.mapeditor.org/u/pauldergaul15)\
**Post date:** [March 24, 2017, 4:03pm UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210/3 "2017-03-24T16:03:10Z")

</div>

i have an gid but only when i use a tile as an object. With the polygon or rectangle object tool i don’t ge an gid just an id…

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 24, 2017, 8:33pm UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210/4 "2017-03-24T20:33:14Z")

</div>

Hmm, of course polygons or rectangles don’t have a gid, because a gid refers to a tile and polygons and rectangles don’t refer to a tile.

What were you planning to do with it?

---

<div class="post-metadata">

**Author:** ![pauldergaul15](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/pauldergaul15/32/1131_2.png) [@pauldergaul15](https://discourse.mapeditor.org/u/pauldergaul15)\
**Post date:** [March 25, 2017, 3:44pm UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210/5 "2017-03-25T15:44:31Z")

</div>

I’m at the moment actually just trying to do a better collsion detection

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 25, 2017, 9:29pm UTC](https://discourse.mapeditor.org/t/problem-with-objects-in-phaser/2210/6 "2017-03-25T21:29:01Z")

</div>

Ok, I don’t really see how this relates to the object being a tile object or not (or it having a gid or not). I think you’ll have to find help in a place with more people using Phaser. 🙂
