I have a little problem with a physics game where the player can draw his own levels with the lines. I really dont know how to explain my problem by words, because my english is pretty weak, and a problem is pretty unusual i think, so i try to show.
Okay, here we got a clear level without anything by the player.
Here the player draws a line
And i need to delete a part of background that is higher than the drawed line. I found a way to do that, simply spawn a white sprite with blend mode "Destination Out" on a black layer, just like in "Lighting" tutorial, and set my tiled background's blend mode to "Source In". It works fine as you can see.
But! It works only when the line is straight, when the player draw's level with some inclined lines, everything's going bad... The ground then delete's under some lines, or dont delete at all where it's need to be deleted.
Hope you understand me, and thanks for any help... Thank you even if you just read that till here