<?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: What&#039;s best way to set a layer to do not render with CCTMXTiledMap?</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/6402</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:33:36 +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/6402" rel="self" type="application/rss+xml" />

		<item>
			<title>Dad on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-45431</link>
			<pubDate>Fri, 09 Jul 2010 05:03:32 +0000</pubDate>
			<dc:creator>Dad</dc:creator>
			<guid isPermaLink="false">45431@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>You might want to use Object layers (which aren't drawn and thus don't get spritesheets etc) for your layer information.  Good tutorials on that at <a href="http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d" rel="nofollow">http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d</a></p>
<p>He uses an object layer for the spawn points and so on.
</p></description>
		</item>
		<item>
			<title>Verisutha on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-37594</link>
			<pubDate>Sat, 15 May 2010 15:05:05 +0000</pubDate>
			<dc:creator>Verisutha</dc:creator>
			<guid isPermaLink="false">37594@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>The other question is how many different tiles are you using on the marking map?  I would think you would only have a couple, in which case it probably won't effect the outcome very much if it generates a single small sprite.</p>
<p>Just don't waste an entire 1024 texture for a marking layer.</p>
<p>If you give us a little more insight as to what you are trying to accomplish we might be able to help better.</p>
<p>Regards,</p>
<p>Veri
</p></description>
		</item>
		<item>
			<title>hexdump on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-37572</link>
			<pubDate>Sat, 15 May 2010 09:20:29 +0000</pubDate>
			<dc:creator>hexdump</dc:creator>
			<guid isPermaLink="false">37572@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi again,</p>
<p>Sorry I forgot to ask a little question before. I suppose that when loading a layer anyway it is info or not, cocos2d will generate a bunch of sprites for it. Is there anyway to free all this sprites to get some mem back? I won't need it because I just used the tilesInfo data.</p>
<p>Thanks in advance,<br />
HexDump.
</p></description>
		</item>
		<item>
			<title>hexdump on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-37571</link>
			<pubDate>Sat, 15 May 2010 09:14:19 +0000</pubDate>
			<dc:creator>hexdump</dc:creator>
			<guid isPermaLink="false">37571@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Thanks a lot for the answers :).</p>
<p>HexDump.
</p></description>
		</item>
		<item>
			<title>Verisutha on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-37532</link>
			<pubDate>Fri, 14 May 2010 22:18:19 +0000</pubDate>
			<dc:creator>Verisutha</dc:creator>
			<guid isPermaLink="false">37532@http://www.cocos2d-iphone.org/forum/</guid>
			<description><pre><code>CCTMXlayer *myInfoLayer = [&#60;your tilemap&#62; layerNamed:@&#34;layername&#34;];
myInfoLayer.visable = NO;</code></pre>
<p>Keep in mind "layername" is the name you gave your layer that you want hidden in TileD. &#60;your tilemap&#62; is your main CCTMXTiledMap.</p>
<p>That will prevent the layer from being drawn.</p>
<p>Hope this helps.
</p></description>
		</item>
		<item>
			<title>Questor on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-37487</link>
			<pubDate>Fri, 14 May 2010 16:27:59 +0000</pubDate>
			<dc:creator>Questor</dc:creator>
			<guid isPermaLink="false">37487@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>hexdump,</p>
<p>If you don't want render a given tilemap, then just don't add it as a child to a layer.  </p>
<p>Hope this helps,<br />
Q
</p></description>
		</item>
		<item>
			<title>hexdump on "What&#039;s best way to set a layer to do not render with CCTMXTiledMap?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/6402#post-37444</link>
			<pubDate>Fri, 14 May 2010 11:39:38 +0000</pubDate>
			<dc:creator>hexdump</dc:creator>
			<guid isPermaLink="false">37444@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi,</p>
<p>I have found this in the docs:</p>
<p>Technical description: Each layer is created using an TMXLayer (subclass of CCSpriteSheet). If you have 5 layers, then 5 TMXLayer will be created, unless the layer visibility is off. In that case, the layer won't be created at all. You can obtain the layers (TMXLayer objects) at runtime by:</p>
<p>First of all, how can I set this visiblity to off in tiled? Is it settig opacity to 0? Is it a property of the layer?.</p>
<p>In the other hand, I have layers that are just information, what's the best way to make them not render? I have though about loading the map, and then do a removeChild from the node they are attached, but don't know if this is the correct way to do it.</p>
<p>Thanks in advance,<br />
HexDump.
</p></description>
		</item>

	</channel>
</rss>

