Line Drawing
Hey guys,
I'm looking for suggestions on how to draw a line from one object to another.
The line will be going from my main character to a stationary object.
I understand that i need some kind of loop:
for (int i = 1; i < [points count]; i++) {
CGContextAddLineToPoint(context, point.x, point.y); }
CGContextStrokePath(context); }
The user is going to make the line, and it's (hopefully) going to go from my main character to a stationary object. Has this been done before?
Any help would be appreciated.
Thanks!
|