Jump to content

Object in tile collision

Simon Zach

Recommended Posts

Hi Guys,

lets say i have a tile 256x512. In the middle is a barrel. How to create a collision between player and barrel only? Not with the whole image.

I made some research and found tiled: https://doc.mapeditor.org/en/stable/manual/editing-tilesets/#tile-collision-editor

But to be honest i dont know how to use this property. Basically tiled just generate a collision zone according to your setting for example 100x100 in the given tiled.

I am wondering how to implement this? I cant find in API anything with the collider zone size. I just found how to set a collision with the whole tile:



Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...