Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tilengine on Java
#31
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.
Reply


Messages In This Thread
Tilengine on Java - by System64 - 12-01-2020, 02:14 AM
RE: Tilengine on Java - by megamarc - 12-02-2020, 05:21 PM
RE: Tilengine on Java - by System64 - 12-02-2020, 07:53 PM
RE: Tilengine on Java - by megamarc - 12-03-2020, 01:27 AM
RE: Tilengine on Java - by System64 - 12-03-2020, 03:23 AM
RE: Tilengine on Java - by megamarc - 12-03-2020, 04:39 PM
RE: Tilengine on Java - by System64 - 12-03-2020, 05:07 PM
RE: Tilengine on Java - by megamarc - 12-04-2020, 04:15 PM
RE: Tilengine on Java - by System64 - 12-04-2020, 10:54 PM
RE: Tilengine on Java - by megamarc - 12-05-2020, 04:07 AM
RE: Tilengine on Java - by System64 - 12-05-2020, 04:15 AM
RE: Tilengine on Java - by megamarc - 12-05-2020, 04:32 AM
RE: Tilengine on Java - by System64 - 12-05-2020, 05:05 AM
RE: Tilengine on Java - by megamarc - 12-05-2020, 05:23 PM
RE: Tilengine on Java - by System64 - 12-05-2020, 10:37 PM
RE: Tilengine on Java - by System64 - 12-07-2020, 12:27 AM
RE: Tilengine on Java - by megamarc - 12-07-2020, 08:27 AM
RE: Tilengine on Java - by System64 - 12-07-2020, 09:43 AM
RE: Tilengine on Java - by megamarc - 12-07-2020, 06:36 PM
RE: Tilengine on Java - by System64 - 12-07-2020, 08:08 PM
RE: Tilengine on Java - by megamarc - 12-08-2020, 12:00 AM
RE: Tilengine on Java - by System64 - 12-08-2020, 12:42 AM
RE: Tilengine on Java - by megamarc - 12-08-2020, 04:58 AM
RE: Tilengine on Java - by System64 - 12-08-2020, 05:06 AM
RE: Tilengine on Java - by System64 - 12-08-2020, 09:50 AM
RE: Tilengine on Java - by megamarc - 12-08-2020, 06:08 PM
RE: Tilengine on Java - by System64 - 12-08-2020, 06:13 PM
RE: Tilengine on Java - by System64 - 12-09-2020, 02:13 AM
RE: Tilengine on Java - by megamarc - 12-09-2020, 03:29 AM
RE: Tilengine on Java - by System64 - 12-09-2020, 04:12 AM
RE: Tilengine on Java - by megamarc - 12-09-2020, 04:29 AM
RE: Tilengine on Java - by System64 - 12-09-2020, 04:34 AM
RE: Tilengine on Java - by megamarc - 12-09-2020, 09:33 PM
RE: Tilengine on Java - by System64 - 12-09-2020, 10:16 PM
RE: Tilengine on Java - by megamarc - 12-09-2020, 10:26 PM
RE: Tilengine on Java - by System64 - 12-09-2020, 11:01 PM
RE: Tilengine on Java - by megamarc - 12-10-2020, 06:14 AM
RE: Tilengine on Java - by System64 - 12-10-2020, 06:22 AM
RE: Tilengine on Java - by System64 - 12-10-2020, 11:09 AM
RE: Tilengine on Java - by megamarc - 12-10-2020, 06:11 PM
RE: Tilengine on Java - by System64 - 12-10-2020, 06:56 PM
RE: Tilengine on Java - by megamarc - 12-10-2020, 08:50 PM
RE: Tilengine on Java - by System64 - 12-10-2020, 09:16 PM
RE: Tilengine on Java - by megamarc - 12-11-2020, 03:28 AM
RE: Tilengine on Java - by System64 - 12-11-2020, 03:34 AM
RE: Tilengine on Java - by megamarc - 12-11-2020, 07:12 AM
RE: Tilengine on Java - by System64 - 12-11-2020, 07:14 AM
RE: Tilengine on Java - by megamarc - 12-11-2020, 07:51 AM
RE: Tilengine on Java - by System64 - 12-11-2020, 08:48 AM
RE: Tilengine on Java - by megamarc - 12-12-2020, 12:30 AM
RE: Tilengine on Java - by System64 - 12-12-2020, 12:51 AM
RE: Tilengine on Java - by megamarc - 12-12-2020, 01:18 AM
RE: Tilengine on Java - by System64 - 12-12-2020, 02:06 AM
RE: Tilengine on Java - by megamarc - 12-12-2020, 02:37 AM
RE: Tilengine on Java - by System64 - 12-12-2020, 03:41 AM
RE: Tilengine on Java - by megamarc - 12-12-2020, 05:15 PM
RE: Tilengine on Java - by System64 - 12-12-2020, 09:14 PM
RE: Tilengine on Java - by megamarc - 12-13-2020, 05:12 AM
RE: Tilengine on Java - by System64 - 12-13-2020, 05:21 AM
RE: Tilengine on Java - by megamarc - 12-13-2020, 05:30 AM
RE: Tilengine on Java - by System64 - 12-13-2020, 05:35 AM
RE: Tilengine on Java - by megamarc - 12-14-2020, 04:45 AM
RE: Tilengine on Java - by System64 - 12-14-2020, 05:46 AM
RE: Tilengine on Java - by megamarc - 12-14-2020, 07:18 PM
RE: Tilengine on Java - by System64 - 12-14-2020, 09:23 PM
RE: Tilengine on Java - by megamarc - 12-14-2020, 11:14 PM
RE: Tilengine on Java - by System64 - 12-15-2020, 12:12 AM
RE: Tilengine on Java - by megamarc - 12-15-2020, 12:50 AM
RE: Tilengine on Java - by System64 - 12-15-2020, 02:08 AM
RE: Tilengine on Java - by megamarc - 12-15-2020, 02:51 AM
RE: Tilengine on Java - by System64 - 12-15-2020, 02:57 AM
RE: Tilengine on Java - by megamarc - 12-15-2020, 07:29 AM
RE: Tilengine on Java - by System64 - 12-15-2020, 08:27 AM
RE: Tilengine on Java - by System64 - 12-21-2020, 06:53 AM
RE: Tilengine on Java - by megamarc - 12-21-2020, 07:35 AM
RE: Tilengine on Java - by System64 - 12-21-2020, 07:55 AM
RE: Tilengine on Java - by System64 - 12-30-2020, 07:31 AM
RE: Tilengine on Java - by megamarc - 12-30-2020, 05:22 PM
RE: Tilengine on Java - by System64 - 12-30-2020, 10:15 PM
RE: Tilengine on Java - by megamarc - 12-31-2020, 10:18 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)