Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision with Tilemap Layer
#2
Hi!
Of course, you have to use the function TLN_GetLayerTile() on the layer you want to test. You pass layer index, the x and y pixel position you want to test, and a pointer to a TLN_TileInfo struct. This struct will be filled with the tile at that position, its type, flags, offet inside the tile, color of the pixel at that position... this is what you need to implement sprite vs layer collision.

Let me know!
Reply


Messages In This Thread
RE: Collision with Tilemap Layer - by megamarc - 04-11-2020, 04:37 PM
RE: Collision with Tilemap Layer - by megamarc - 04-13-2020, 02:59 PM
RE: Collision with Tilemap Layer - by megamarc - 04-14-2020, 03:36 AM
RE: Collision with Tilemap Layer - by megamarc - 04-14-2020, 02:45 PM
RE: Collision with Tilemap Layer - by megamarc - 04-17-2020, 05:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)