Drawing a Line

Drawing a Line
0.0 0


How do you draw a Line? Is there a function for that? I tried ccdrawLine, but nothing was appearing.


You can refer DrawPrimitivesTest.


right, is there a way to change the z-value so that the lines appear over child objects?


Perhaps you can draw the line in a separate CCLayer with a high depth value (the z order argument @ adding a child node)?


I was hoping I wouldn’t have to, but I guess I can do that.