How to create an object composed by a rectangle inside a rectangle

I’m using tiled to place entities in the map such as: warps, doors, switches, etc. I use rectangles to place it.

Now I want to put another rectangle inside the rectangle to set the collision rectangle. ¿Is it possible.?

If you are using standard objects you could simply add a second object for the collision rectangle. However there is no way to link the two objects together (so they get moved around together for example…).

An alternative for you might be to use standard tiles and use the (new) collision editor to draw the collision object(s) onto the tile there. (It basically attaches objects to tiles). This of course only works if your collision shapes are always the same for the same game objects.

I hope this helped,

1 Like

That’s what I need. I’ll use images objects and the collision editing tool. Thank you.