Assign collision to transparent tile (SOLVED)

Here is an example of a tilesource with some blank sections:

Screenshot 2022-10-03 173218

I would like to treat one of the fully transparent spaces as an actual tile with collision. Use case is to have an invisible boundary the player cannot pass. When I select a collision group then select one of the blank spaces, it does not work.

Is there a workaround to get the editor to recognize one of these spaces as a legitimate tile?

I had similar problems and this could be solved by a separate image for collision image property in a tilesource. On that image you will need to draw a fully coloured tile in a place you want, but you need to leave the original image untouched, as a base on what is actually displayed.
So you will have two images, one for what you see, second for what you collide with (but tiles must match when it comes to their position and size)

3 Likes

Ah I forgot about this approach. Thanks.

2 Likes