Re: Drawing a path and making an object follow that path IPHONE
Re: Drawing a path and making an object follow that path IPHONE
- Subject: Re: Drawing a path and making an object follow that path IPHONE
- From: Steve Christensen <email@hidden>
- Date: Wed, 14 Apr 2010 10:06:41 -0700
You could probably start by studying the documentation for CGPathRef,
which lets you create, manipulate and draw bezier paths. These are C,
not Objective-C API calls, but they work perfectly fine in an
Objective-C application. iPhone OS 3.2 adds UIBezierPath, with wraps
these calls, but if you want to target devices running an earlier
version of the OS, it wouldn't make sense to use it.
One benefit of using the CGPath API is that this is also available as
part of CoreGraphics on the Mac, so you're likely to be able to find
more sample code out there.
A quick Google search returned this hit (http://www.cocos2d-iphone.org/forum/topic/1376
), which talks about moving sprites along a path and references other
info that might be helpful.
On Apr 12, 2010, at 11:06 PM, charisse napeÿfffff1as wrote:
I'm a newbie at iphone development and I was wondering if somebody
can point out how to create a simple app where I can draw a simple
path with loops or curves from point a to b and then make an object
follow that path from a to b. Anybody can give me a sample code or
something so I can study it?
Thanks,
Charisse
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden