<?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: How to create a Animated HUD layer</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/4775</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:57:49 +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/4775" rel="self" type="application/rss+xml" />

		<item>
			<title>balaji on "How to create a Animated HUD layer"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4775#post-29296</link>
			<pubDate>Mon, 08 Mar 2010 22:11:15 +0000</pubDate>
			<dc:creator>balaji</dc:creator>
			<guid isPermaLink="false">29296@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>thank you guys.. i think what pfg is getting to is exactly what i need.. now, the thing is i have this game scene layer where my tiles are and i need this overlay layer to be above that when a button is pressed.. ok.. now.. i need to communicate with the overlay layer.. for eg.. if i have a game that needs to record amount of money that i have gained.. then.. i put it up on the overlay layer.. while i was going through this on the forums.. some one suggested using singleton's.. is it possible for you guys to guide me on this aspect.. or just let me in on some tutorials if you found anything online for cocos2d.. thanks guys..
</p></description>
		</item>
		<item>
			<title>pfg2009 on "How to create a Animated HUD layer"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4775#post-28474</link>
			<pubDate>Tue, 02 Mar 2010 06:00:38 +0000</pubDate>
			<dc:creator>pfg2009</dc:creator>
			<guid isPermaLink="false">28474@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I agree with jd.  Both pushScene or a custom layer on top that you move around as you need would do the job.  I personally prefer using an overlay layer because it feels more flexible to me.  You can move a layer within a scene just like any other object:</p>
<p><code><br />
myOverlayLayer.position = ccp(480, 0);<br />
myOverlayLayer.anchorPoint = ccp(0, 0);<br />
[myScene addChild:myOverlayLayer];</p>
<p>[myOverlayLayer runAction:[CCEaseInOut actionWithAction:[CCMoveBy actionWithDuration:1 position:ccp(-480, 0)] rate:2]];<br />
</code>
</p></description>
		</item>
		<item>
			<title>jd on "How to create a Animated HUD layer"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4775#post-28446</link>
			<pubDate>Tue, 02 Mar 2010 01:18:35 +0000</pubDate>
			<dc:creator>jd</dc:creator>
			<guid isPermaLink="false">28446@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I'm fairly sure you can do scene transitions with pushScene just like you would with replaceScene.  You can also do custom movements with your layers.
</p></description>
		</item>
		<item>
			<title>balaji on "How to create a Animated HUD layer"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4775#post-28414</link>
			<pubDate>Mon, 01 Mar 2010 21:15:31 +0000</pubDate>
			<dc:creator>balaji</dc:creator>
			<guid isPermaLink="false">28414@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>that would just show up my background without any animation. I was wondering if it could swipe in from the right (since the button is placed there) and disable the background and enable touch features on the HUD layer alone.
</p></description>
		</item>
		<item>
			<title>jd on "How to create a Animated HUD layer"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4775#post-28412</link>
			<pubDate>Mon, 01 Mar 2010 21:05:34 +0000</pubDate>
			<dc:creator>jd</dc:creator>
			<guid isPermaLink="false">28412@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>You can do this using pushScene or you can just show your HUD layer at a higher z index over the current layer when button pushed.  If you want to pause the gameplay, you can pause the director.
</p></description>
		</item>
		<item>
			<title>balaji on "How to create a Animated HUD layer"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4775#post-28411</link>
			<pubDate>Mon, 01 Mar 2010 21:01:04 +0000</pubDate>
			<dc:creator>balaji</dc:creator>
			<guid isPermaLink="false">28411@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I was wondering if someone could help me with the creation of a nice animated HUD layer.<br />
I wanted an arrow button on the right top side of my screen which when pressed, smoothly opens up a transparent background HUD layer. And it can contain many in game counters and the pause button, maybe and few other stuff. Basically like a Pause screen on any PC game.
</p></description>
		</item>

	</channel>
</rss>

