Page 1 of 1

Water collison mask

Posted: Wed Apr 13, 2016 2:48 pm
by Navruz
I'm having a issue with a entity involving water tiles. I'm trying to make him collision free except for water tiles. So i made his collision box "{{0,0}, {0,0}}," and his collision mask to "water-tile" but it went over water... I did some research and it seems water tiles aren't in that layer. Is their any way to make the entity not pass through water? Any help would be great :)

Re: Water collison mask

Posted: Wed Apr 13, 2016 4:47 pm
by Adil
Here's the link for the old thread that might be of use.

Re: Water collison mask

Posted: Wed Apr 13, 2016 6:27 pm
by Navruz
Okay so i understand how the collision mask works but the problem is that trees and water are under the same layer called "water-tile". But i wont it to ignore trees but not water. Is this perhaps not possible? Thank you for that quick respond though :)

Re: Water collison mask

Posted: Wed Apr 13, 2016 6:54 pm
by Adil
I don't know in which layers are trees located, they seem to have hardcoded mask for default, but have you tried modifying trees so that they dont't have water-tile collision layer.
Then again, quite many entities have that and your entity will still collide with those.

Re: Water collison mask

Posted: Thu Apr 14, 2016 6:05 pm
by Navruz
I tried multiple ways to change trees their collision mask but not a single one worked. Any idea how it would? Also i'm fine with it hitting rocks. If it would just ignore trees that would be great.