<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: Animating a custom drawing routine?</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/5022</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 01:48:42 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/5022" rel="self" type="application/rss+xml" />

		<item>
			<title>slycrel on "Animating a custom drawing routine?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/5022#post-30017</link>
			<pubDate>Sun, 14 Mar 2010 02:13:00 +0000</pubDate>
			<dc:creator>slycrel</dc:creator>
			<guid isPermaLink="false">30017@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I haven't done anything like this, but my first impression would be to make a streaking image and fade that over time as your hand moved.  There is also a motion streak example in the project that comes with cocos2d.
</p></description>
		</item>
		<item>
			<title>fg1921 on "Animating a custom drawing routine?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/5022#post-30003</link>
			<pubDate>Sat, 13 Mar 2010 23:23:17 +0000</pubDate>
			<dc:creator>fg1921</dc:creator>
			<guid isPermaLink="false">30003@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi,</p>
<p>I do apologize if this is blatantly obvious but I'm a newbie (great library by the way - just discovered it!!). Essentially I am trying to do this:</p>
<p>I have a clock view with a hyper seconds hand that needs to rotate round the clock in under 2 seconds (using ease in). Rotation seems extremely easy to achieve. However I have a transparent layer behind the hand that essentially draws a 'trail' (i.e. a faint narrow arc) as the hand rotates round the clock (essentially following the hand and easing in with the animation). </p>
<p>I've read the FAQs that one can schedule a timer and draw the layers at a frame rate equal to that of the actual app. However I don't know how to draw the arc on a layer and make it seem 'animatable' or at least make it look like it's drawing the arc at the same animation rate as that of the rotating hand.</p>
<p>Any tips, hints would be extremely appreciated. I tried this in Core Animation and it was just dead slow on the device. Drawing the arc (effectively a one pixel line forming the arc which spans across 360 degrees) was taking too long and NSTimers weren't fast enough.</p>
<p>Please please help :)
</p></description>
		</item>

	</channel>
</rss>

