Skip to main content
edited tags
Link
user1430
user1430
Tweeted twitter.com/#!/StackGameDev/status/525600536054095873
Clarified title. Some grammar and word order in contents. Removed thankyous and calls for help, since those are implicitly clear.
Source Link
Anko
  • 13.4k
  • 10
  • 55
  • 82

Creating How do I find the shape of Tiled's circles andor ellipses from Tiled Map Editor in libGDX?

I created a level in the 'Tiled Map Editor' and loaded it into my libGDX game. I can easily transform almost all objects into Box2D objects (although this problem is not Box2D specific). But, but I have trouble with ellipses.

Tiled is not creating circleseems to only create ellipse objects as far as I saw (I could also accept, without a special case for circles. I'd be happy with just circles if they would be thereexisted in Tiled) - only ellipses.

ButHowever, even the EllipseMapObject I load in libGDX only has x and yan x,y position. I don't see any information about area or vertices. Did I miss something  ? How can I create circleobjectscircle or ellipse object via tiledmapobjects in Tiled and load them into libGDX with right dimensions  ? Any hint is welcome.

 

Tiled version is 0.10.1 and, libGDX isversion 1.4.1

Thank you.

Creating circles and ellipses from Tiled Map Editor in libGDX

I created a level in the 'Tiled Map Editor' and loaded it into my libGDX game. I can easily transform almost all objects into Box2D objects (although this problem is not Box2D specific). But I have trouble with ellipses.

Tiled is not creating circle objects as far as I saw (I could also accept circles if they would be there in Tiled) - only ellipses.

But the EllipseMapObject I load in libGDX only has x and y position. I don't see any information about area or vertices. Did I miss something  ? How can I create circleobjects or ellipse object via tiledmap and load them into libGDX with right dimensions  ? Any hint is welcome.

Tiled version is 0.10.1 and libGDX is 1.4.1

Thank you.

How do I find the shape of Tiled's circles or ellipses in libGDX?

I created a level in the 'Tiled Map Editor' and loaded it into my libGDX game. I can easily transform almost all objects into Box2D objects (although this problem is not Box2D specific), but I have trouble with ellipses.

Tiled seems to only create ellipse objects, without a special case for circles. I'd be happy with just circles if they existed in Tiled.

However, even the EllipseMapObject I load in libGDX only has an x,y position. I don't see any information about area or vertices. Did I miss something? How can I create circle or ellipse objects in Tiled and load them into libGDX with right dimensions?

 

Tiled version 0.10.1, libGDX version 1.4.1

Source Link
Marco
  • 131
  • 1
  • 6

Creating circles and ellipses from Tiled Map Editor in libGDX

I created a level in the 'Tiled Map Editor' and loaded it into my libGDX game. I can easily transform almost all objects into Box2D objects (although this problem is not Box2D specific). But I have trouble with ellipses.

Tiled is not creating circle objects as far as I saw (I could also accept circles if they would be there in Tiled) - only ellipses.

But the EllipseMapObject I load in libGDX only has x and y position. I don't see any information about area or vertices. Did I miss something ? How can I create circleobjects or ellipse object via tiledmap and load them into libGDX with right dimensions ? Any hint is welcome.

Tiled version is 0.10.1 and libGDX is 1.4.1

Thank you.