Hi all. I am making a platformer game and I have made some tiles with OWC (one-way collision) -- by adding StaticBody2D node to that tile in tilemap scene, and a CollisionShape2D with OWC turned on as a child of StaticBody2D node.
My game has gravity flipping and I implemented it successfully on everything except one-way tiles which now need to detect OWC in the other direction!
I've been trying to access individual tile's nodes, or adding tile's nodes to a group before converting it to tileset, but no luck.
Is there a way to gain access to certain tile's nodes?
If not, what would be a good approach to making one-way tiles that can flip? I'm thinking of creating a duplicate of those tiles which have OWC in the other way, and then making a code that replaces all tiles which have OWC in normal direction with these duplicates.