Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Objects list : How to use it?
#4
If you just want to use an object list as non-interactive "decorations", Tilengine can draw them by itself. To see a working example, chech the sample "forest" and its related assets:
https://github.com/megamarc/Tilengine/bl...s/Forest.c

The graphic objects must be stored bitmap-based Tiled .tsx file.

Check guide here:
http://www.tilengine.org/doc/md_layers.h...totoc_md31

  1. Load the object layer with TLN_LoadObjectList()
  2. Assign to a layer with TLN_SetLayerObjects()
However, if you want to use the object list for own-purpose gameplay mechanics -like spawning sources for actors- it's up to you to query the list and operate accordingly, as I outlined in previous post.
Reply


Messages In This Thread
Objects list : How to use it? - by System64 - 12-19-2020, 05:20 AM
RE: Objects list : How to use it? - by megamarc - 12-19-2020, 06:09 PM
RE: Objects list : How to use it? - by System64 - 12-19-2020, 09:57 PM
RE: Objects list : How to use it? - by megamarc - 12-19-2020, 10:27 PM
RE: Objects list : How to use it? - by System64 - 12-19-2020, 11:29 PM
RE: Objects list : How to use it? - by megamarc - 12-19-2020, 11:59 PM
RE: Objects list : How to use it? - by System64 - 12-20-2020, 12:07 AM
RE: Objects list : How to use it? - by megamarc - 12-20-2020, 12:15 AM
RE: Objects list : How to use it? - by System64 - 12-20-2020, 02:58 AM
RE: Objects list : How to use it? - by megamarc - 12-20-2020, 03:14 AM
RE: Objects list : How to use it? - by System64 - 12-20-2020, 04:14 AM
RE: Objects list : How to use it? - by megamarc - 12-20-2020, 08:05 AM
RE: Objects list : How to use it? - by System64 - 12-20-2020, 09:25 AM
RE: Objects list : How to use it? - by megamarc - 12-20-2020, 05:17 PM
RE: Objects list : How to use it? - by System64 - 12-20-2020, 10:06 PM
RE: Objects list : How to use it? - by megamarc - 12-21-2020, 03:14 AM
RE: Objects list : How to use it? - by System64 - 12-21-2020, 04:13 AM
RE: Objects list : How to use it? - by megamarc - 12-21-2020, 07:41 AM
RE: Objects list : How to use it? - by System64 - 12-21-2020, 07:53 AM
RE: Objects list : How to use it? - by megamarc - 12-21-2020, 08:23 AM
RE: Objects list : How to use it? - by System64 - 12-21-2020, 09:15 AM
RE: Objects list : How to use it? - by megamarc - 12-24-2020, 06:47 AM
RE: Objects list : How to use it? - by System64 - 12-24-2020, 06:56 AM
RE: Objects list : How to use it? - by megamarc - 12-24-2020, 04:33 PM
RE: Objects list : How to use it? - by System64 - 12-24-2020, 09:43 PM
RE: Objects list : How to use it? - by megamarc - 12-25-2020, 07:31 AM
RE: Objects list : How to use it? - by System64 - 12-25-2020, 08:59 AM
RE: Objects list : How to use it? - by megamarc - 12-27-2020, 05:05 PM
RE: Objects list : How to use it? - by System64 - 12-27-2020, 09:44 PM
RE: Objects list : How to use it? - by megamarc - 12-28-2020, 05:58 PM
RE: Objects list : How to use it? - by System64 - 12-28-2020, 09:13 PM
RE: Objects list : How to use it? - by megamarc - 12-28-2020, 10:42 PM
RE: Objects list : How to use it? - by System64 - 12-29-2020, 01:31 AM
RE: Objects list : How to use it? - by megamarc - 12-31-2020, 10:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)