flame icon indicating copy to clipboard operation
flame copied to clipboard

Automatic hitboxes for collisions in flame_tiled from tiled definition

Open mrhitman opened this issue 3 years ago • 3 comments

I'm added collisions from tiled editor, and want to load them as part of level.

mrhitman avatar Feb 19 '22 09:02 mrhitman

It is unfortunately not possible currently.

spydon avatar Feb 19 '22 12:02 spydon

It is possible to use the third party package flame_forge2d_tiled to create Forge2D bodies though. https://github.com/aeb-dev/flame_forge2d_tiled https://pub.dev/packages/flame_forge2d_tiled

spydon avatar Feb 19 '22 12:02 spydon

It is unfortunately not possible currently.

I am not certain I understand the request fully, BUT with the inclusion of our recent PR for flame_tiled and the work in 1.1, I do set custom properties per object in Tiled itself and some of that is the collision type. I merely need to read that property and set it the correct one via a switch statement (of which it could be an extension but I just wrote a method in my level class to process.)

munsterlander avatar Mar 13 '22 01:03 munsterlander