Hello People!
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.
[attachment=2:9uc39ggm][/attachment:9uc39ggm]
Here the player draws a line
[attachment=1:9uc39ggm][/attachment:9uc39ggm]
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.
[attachment=0:9uc39ggm][/attachment:9uc39ggm]
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