Page 1 of 1

How can I allow entities to be placed on top of my entity?

Posted: Thu Feb 07, 2019 7:54 pm
by JAetherwing
I have created an entity which is supposed to be above the ground, so I'd like to allow other entities to be placed in it's spot (visually "below" it, but internally at the same x/y position) and vice versa. Is there a way to do this?
I thought, setting the collision box to {{0, 0}, {0, 0}} should be enough, but apparently it is not.

Re: How can I allow entities to be placed on top of my entity?

Posted: Thu Feb 07, 2019 8:18 pm
by DaveMcW

Code: Select all

entity.collision_mask = {}

Re: How can I allow entities to be placed on top of my entity?

Posted: Thu Feb 07, 2019 8:35 pm
by JAetherwing
Thank you, that helped me a lot!