<?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; Tag: atlaslabel - Recent Topics</title>
		<link>http://www.cocos2d-iphone.org/forum/tags/atlaslabel</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 04:16: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/tags/atlaslabel/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>artem on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10052</link>
			<pubDate>Sun, 30 Aug 2009 19:35:14 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">10052@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>What is the best way to implement local scores to show on each scene?</p>
<p>Should I use label or AtlasLabel?</p>
<p>I tried to use label and AtlasLabel, but it does not get updated, it just displays zero.</p>
<p>Thanks!
</p></description>
		</item>
		<item>
			<title>artem on "LabelAtlas How to make it bigger"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/2342#post-14720</link>
			<pubDate>Wed, 07 Oct 2009 23:24:50 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">14720@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi guys,</p>
<p>Is there any way to make LabelAtlas to take 50% or more of the iphone screen?</p>
<p>Thanks!
</p></description>
		</item>
		<item>
			<title>Korki696 on "BitmapFontAtlas Problems"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/948#post-5671</link>
			<pubDate>Tue, 28 Jul 2009 06:21:50 +0000</pubDate>
			<dc:creator>Korki696</dc:creator>
			<guid isPermaLink="false">5671@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hey all so im trying to display a bitmapfontAtlas. It works perfectly to display it but when i try to update it, it crashes. here is what i have</p>
<pre><code>-(void) displayScore {

	BitmapFontAtlas *label1 = [BitmapFontAtlas bitmapFontAtlasWithString:@&#34;SCORE:&#34; fntFile:@&#34;IceAge3.fnt&#34;];

	label1.anchorPoint = ccp(0,0);
	[self addChild:label1 z:0 tag:kTagBitmapAtlas1];

	CGSize s = [[Director sharedDirector] winSize];
	label1.position = ccp( s.width/2, s.height/2);

}</code></pre>
<p>This displays fine but then in my game loop i have updateScore and this:</p>
<pre><code>-(void) updateScore {
	int score = [GlobalDataManager sharedDataManager].currentScore;
	NSString *string = [NSString stringWithFormat:@&#34;SCORE: %i&#34;, score];
	NSLog(@&#34;%@&#34;, string);
	BitmapFontAtlas *label1 = (BitmapFontAtlas*) [self getChildByTag:kTagBitmapAtlas1];
	[label1 setString:string];
}</code></pre>
<p>It crashes on:<br />
<code>[label1 setString:string];</code><br />
with:</p>
<p>*** -[AtlasSpriteManager setString:]: unrecognized selector sent to instance 0xe6d540<br />
2009-07-28 01:13:36.352 SnowFight[62234:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AtlasSpriteManager setString:]: unrecognized selector sent to instance 0xe6d540'</p>
<p>Im sure I made a stupid mistake somewhere but i copied and pasted this from the cocos2d project.</p>
<p>Thanks<br />
-Lars
</p></description>
		</item>
		<item>
			<title>jonathan0382 on "Labels vs. AtlasLabels. Labels slow down game. What is the best practice?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/922#post-5452</link>
			<pubDate>Mon, 27 Jul 2009 02:46:57 +0000</pubDate>
			<dc:creator>jonathan0382</dc:creator>
			<guid isPermaLink="false">5452@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi all,</p>
<p>I've just changed all my atlasLabel from this:</p>
<p>//		timeTakenLabel = [LabelAtlas labelAtlasWithString:@"0.0" charMapFile:@"charmap6.png" itemWidth:48 itemHeight:70 startCharMap:' '];</p>
<p>To this:<br />
		timeTakenLabel = [Label labelWithString:NSLocalizedString(@"", @"") dimensions:CGSizeMake(300, 60) alignment:UITextAlignmentLeft fontName:@"Marker Felt" fontSize:30];</p>
<p>Obviously, I am going from labelAtlases to Labels, and as such I'm getting some major slowdown in game as the labels are constantly updated. I made the change because I want to use the Marker Felt font in the label.</p>
<p>Is there a way to use this font without changing the atlaslabel to a label, and so avoid the slowdown? The font looks excellent!
</p></description>
		</item>

	</channel>
</rss>

