Ability to specify a collision_mask for a gate barrier
Posted: Sat Apr 20, 2019 11:11 pm
I have a gate that can only go on a spaceship so I set it to collide with ground-tile so it can't be placed on normal ground.
The problem is that the player can go through closed doors.
If I add "player-layer" to the list, the player can't go through open doors.
I'm thinking that the entity has two default collision masks normally, but setting the value on the prototype seems to affect both?
If there's something like a secondary collision mask it would be great to be able to set that in the prototype.
Code: Select all
{
"ground-tile",
"water-tile",
"object-layer",
"item-layer",
}
If I add "player-layer" to the list, the player can't go through open doors.
I'm thinking that the entity has two default collision masks normally, but setting the value on the prototype seems to affect both?
If there's something like a secondary collision mask it would be great to be able to set that in the prototype.