wojtossfm / godot_scml_importer

MIT License
33 stars 6 forks source link

z-index usage is subpar leading to clipping issues #13

Open wojtossfm opened 3 years ago

wojtossfm commented 3 years ago

While the effect on a single character is correct when multiple character cross this seems to break.

A solution seems to be:

Seemed in the scenes where I tried it this led to the expected ordering visually being maintained while removing the issue of multiple characters crossing and sprites clipping over each other in awkward ways.

wojtossfm commented 3 years ago

Not sure this is easily solvable and is in part an animation/character issue rather than an issue with the importer itself. The solution I mentioned in the initial comment would work for simple cases but there are ones where z-index appears to be used to change order between different layers of the hierarchy where simple ordering of children in godot wouldn't be enough. I'll leave this open as an enhancement could still be done to limit usage of z-index in the simpler cases and make it an importer option.

wojtossfm commented 3 years ago

A potential solution is also using a y-sort node (in case someone comes looking for an easy solve)