Listen up guys,
I have created a side scrolling game in 800x400 display. Ball continuously moves in right direction, camera follows. Enemy triangles keep coming, ball jumps over them (NOTE: triangles are not moving,but the ball is moving towards right) . The game is fully functional if i want these triangles to overlap, but NO I don't want them to overlap.
What i tried so far: I checked for collisiondetection of a triangle relative to previous LIVE triangle. If they collide i make the current triangle[i].live = false. NOT WORKING
Long story short, HELP!! 
Your triangles don't seem to move in the update function. If that's the case, just ensuring they don't spawn on top of each other will mean they won't overlap.
In your Starttriangle function, after you created your triangle check collisions with all the rest of the triangles on the screen, if collision occurs, retry spawn position until it doesn't.
for retrying spawn position you could simply randomize it again or you could write some algorithms that finds the closest place where it wouldn't collide.
Only spawn a new triangle after the player has moved a large enough distance?
Solved it! used another triangle T to store the values of next triangle to be generated, and checked for overlapping. If not overlap, draw them!