Page 1 of 1
How to make an entity collide with ONLY water?
Posted: Thu Jun 27, 2019 3:02 pm
by Reika
I have an entity that I want to be completely intangible and able to be built on, but still removed if water is placed over/under it. This appears to require being given the water-tile collision mask, but doing that also makes it collide with everything that collides with water, which is almost everything. Is there a way to make the entity only collide with water?
Re: How to make an entity collide with ONLY water?
Posted: Thu Jun 27, 2019 3:07 pm
by posila
Try collision_mask = { "colliding-with-tiles-only", "water-tile" }, but I am not sure if it'll work exactly the way you want.
Re: How to make an entity collide with ONLY water?
Posted: Thu Jun 27, 2019 3:08 pm
by Reika
posila wrote: ↑Thu Jun 27, 2019 3:07 pm
Try collision_mask = { "colliding-with-tiles-only", "water-tile" }, but I am not sure if it'll work exactly the way you want.
I will try it.
Re: How to make an entity collide with ONLY water?
Posted: Thu Jun 27, 2019 3:15 pm
by Reika
It works! Thank you!