White lines on screen (SOLVED)

Better than what? You should use the z-value to control the order in which sprites and other things are drawn. Remember that the default render script has a z-range from -1 to 1. Make a copy and increase this so you get a bit more flexibility and don’t have to mess with fractional z-values.

You should also keep in mind how the number of draw calls are affected by how you interleave components based on z-value. Kingster @Mattias_Hedberg has written an excellent summary in this article.

1 Like