12-09-2020, 04:29 AM
Hi,
I'll check the attached 7z later, thanks.
For objects, you can use the "Object Layer" feature:
http://www.tilengine.org/doc/md_layers.h...totoc_md31
These can be directly loaded and drawn by Tilengine from Tiled object layers. However, if you want to use them a spawning points in your gameplay, you have to do it by hand. There is the function TLN_GetObjectList that allows to iterate along all the objects in the list. Based on their type and position relative to the viewport, you can use them as spawning points. That's what the Python Platformer example does:
https://github.com/megamarc/TilenginePyt...mer.py#L30
That example does create the list loading directly the .tmx file without Tilengine support. After that, I added the "object layer" feature where you can load and query the object list directly from within the engine.
I'll check the attached 7z later, thanks.
For objects, you can use the "Object Layer" feature:
http://www.tilengine.org/doc/md_layers.h...totoc_md31
These can be directly loaded and drawn by Tilengine from Tiled object layers. However, if you want to use them a spawning points in your gameplay, you have to do it by hand. There is the function TLN_GetObjectList that allows to iterate along all the objects in the list. Based on their type and position relative to the viewport, you can use them as spawning points. That's what the Python Platformer example does:
https://github.com/megamarc/TilenginePyt...mer.py#L30
That example does create the list loading directly the .tmx file without Tilengine support. After that, I added the "object layer" feature where you can load and query the object list directly from within the engine.