<?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 Posts</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 03:33:15 +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" rel="self" type="application/rss+xml" />

		<item>
			<title>VendiaDevelopment on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-66656</link>
			<pubDate>Sat, 11 Dec 2010 21:01:43 +0000</pubDate>
			<dc:creator>VendiaDevelopment</dc:creator>
			<guid isPermaLink="false">66656@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Where did you find information on what to type in for ... fntFile:@"bitmapFontTest.fnt"];
</p></description>
		</item>
		<item>
			<title>Joethemonkey101 on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-64742</link>
			<pubDate>Sat, 27 Nov 2010 02:10:35 +0000</pubDate>
			<dc:creator>Joethemonkey101</dc:creator>
			<guid isPermaLink="false">64742@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/23119'>apukumarghose</a> mega bump. I use CCBitmapFontAtlas since it doesn't take tons of memory to constantly update.
</p></description>
		</item>
		<item>
			<title>apukumarghose on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-64741</link>
			<pubDate>Sat, 27 Nov 2010 01:51:37 +0000</pubDate>
			<dc:creator>apukumarghose</dc:creator>
			<guid isPermaLink="false">64741@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>updated score is viewed when i run the game next time. it's not appearing at the run time when it is currently running. any solution?
</p></description>
		</item>
		<item>
			<title>Clain on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-20226</link>
			<pubDate>Fri, 04 Dec 2009 09:11:15 +0000</pubDate>
			<dc:creator>Clain</dc:creator>
			<guid isPermaLink="false">20226@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>^ Did you read this ? <a href="http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:labels" rel="nofollow">http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:labels</a></p>
<p>Basically you use LabelAtlas (or BitmapFontAtlas) to display text that is updated frequently (like score or timer). And Label for text that doesn't change often or at all.
</p></description>
		</item>
		<item>
			<title>leanhtai on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-20218</link>
			<pubDate>Fri, 04 Dec 2009 07:53:47 +0000</pubDate>
			<dc:creator>leanhtai</dc:creator>
			<guid isPermaLink="false">20218@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>May I ask ? when we should use AtlasLabel and when to just use Label? which one is faster and lighter ( consume less memory ).???</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-14819</link>
			<pubDate>Thu, 08 Oct 2009 23:13:49 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">14819@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Thanks! </p>
<p>I'll try that.
</p></description>
		</item>
		<item>
			<title>Codemattic on "LabelAtlas How to make it bigger"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/2342#post-14736</link>
			<pubDate>Thu, 08 Oct 2009 06:54:18 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">14736@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Just make the characters in the charmap file big enough.  Or use the scale property to make the label bigger (although you will get some pixellation that way).
</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>artem on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10346</link>
			<pubDate>Wed, 02 Sep 2009 00:11:51 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">10346@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Thanks, I'll try to do it this way.
</p></description>
		</item>
		<item>
			<title>ob1 on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10220</link>
			<pubDate>Tue, 01 Sep 2009 06:04:22 +0000</pubDate>
			<dc:creator>ob1</dc:creator>
			<guid isPermaLink="false">10220@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/666'>osiris</a> Yes, it's a possibility too. It didn't do it in my game because of the way I designed it, but it's a good idea.
</p></description>
		</item>
		<item>
			<title>artem on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10204</link>
			<pubDate>Tue, 01 Sep 2009 01:55:17 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">10204@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi, </p>
<p>I have 10 scenes, each of them has separate interface, I figured it out how to<br />
use labelAtlas to display it, but I'm stuck with implementing update function. Should I create global function to do this? </p>
<p>Please advise.</p>
<p>Thanks!
</p></description>
		</item>
		<item>
			<title>Osiris on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10189</link>
			<pubDate>Mon, 31 Aug 2009 23:43:50 +0000</pubDate>
			<dc:creator>Osiris</dc:creator>
			<guid isPermaLink="false">10189@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/135'>ob1</a> - why not trigger the score update in the function that increments the score tally?  then its not being checked every clock tick.
</p></description>
		</item>
		<item>
			<title>artem on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10182</link>
			<pubDate>Mon, 31 Aug 2009 22:27:02 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">10182@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Thanks for suggestions!</p>
<p>I'll try that.
</p></description>
		</item>
		<item>
			<title>ob1 on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10093</link>
			<pubDate>Mon, 31 Aug 2009 07:05:27 +0000</pubDate>
			<dc:creator>ob1</dc:creator>
			<guid isPermaLink="false">10093@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>What I do is that I separated the model (the score) and the view (the label).</p>
<p>The view part has something like:</p>
<pre><code>- step:(ccTime) dt
{
 if (previousScore != model.score)
 {
  NSString *str = [NSString stringWithFormat:@&#34;%i&#34;, model.score];
  [myScoreLabel setString:str];
 }
}</code></pre>
<p>A NSNotification might also be something to look into.
</p></description>
		</item>
		<item>
			<title>Codemattic on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10091</link>
			<pubDate>Mon, 31 Aug 2009 06:48:35 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">10091@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>yes - use AtlasLabel if possible
</p></description>
		</item>
		<item>
			<title>artem on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10077</link>
			<pubDate>Mon, 31 Aug 2009 02:08:11 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">10077@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Sounds logical, I'll try that.</p>
<p>Thanks!
</p></description>
		</item>
		<item>
			<title>plasticpower on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10063</link>
			<pubDate>Sun, 30 Aug 2009 21:29:04 +0000</pubDate>
			<dc:creator>plasticpower</dc:creator>
			<guid isPermaLink="false">10063@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>You don't want to update the label that often, because changing the label is as expensive as creating a new sprite (unless it's an atlas label). You want to set up an update method and call it only when the score needs to be updated. It will not update automaticslly, you need to call [label setString:yourStringHere] on it every time you want to update it. But definitely do not re-draw it every frame.
</p></description>
		</item>
		<item>
			<title>artem on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10061</link>
			<pubDate>Sun, 30 Aug 2009 20:50:44 +0000</pubDate>
			<dc:creator>artem</dc:creator>
			<guid isPermaLink="false">10061@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I tried that, it get's updated only after game runs at least once. How can I use something<br />
like cocos fps display where fps stays throughout all game?</p>
<p>Thanks!
</p></description>
		</item>
		<item>
			<title>Codemattic on "Best way to show scores in the game"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1605#post-10056</link>
			<pubDate>Sun, 30 Aug 2009 20:18:51 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">10056@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>"I tried to use label and AtlasLabel, but it does not get updated, it just displays zero."</p>
<p>Assuming score is an integer, try:</p>
<pre><code>NSString *str = [NSString stringWithFormat:@&#34;%i&#34;, score];
[myScoreLabel setString:str];</code></pre></description>
		</item>
		<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>Korki696 on "BitmapFontAtlas Problems"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/948#post-5708</link>
			<pubDate>Tue, 28 Jul 2009 13:08:16 +0000</pubDate>
			<dc:creator>Korki696</dc:creator>
			<guid isPermaLink="false">5708@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hey Codemattic,<br />
That was it. I must have totally missed that last night!<br />
Thanks a lot<br />
-Lars
</p></description>
		</item>
		<item>
			<title>crmagicxxx on "BitmapFontAtlas Problems"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/948#post-5699</link>
			<pubDate>Tue, 28 Jul 2009 11:35:28 +0000</pubDate>
			<dc:creator>crmagicxxx</dc:creator>
			<guid isPermaLink="false">5699@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p><em>@<a href='http://www.cocos2d-iphone.org/forum/profile/75'>pabloruiz55</a></em> It should be auto-retained when added to scene/layer</p>
<p>I think Codemattic is right. Keep in mind that <code>kTagBitmapAtlas1</code> is just a number, and you probably gave same number to some <code>AtlasSpriteManager</code> somewhere in your code...
</p></description>
		</item>
		<item>
			<title>pabloruiz55 on "BitmapFontAtlas Problems"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/948#post-5696</link>
			<pubDate>Tue, 28 Jul 2009 10:55:17 +0000</pubDate>
			<dc:creator>pabloruiz55</dc:creator>
			<guid isPermaLink="false">5696@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Shouldn't he be retaining the BitmapFontAtlas ?
</p></description>
		</item>
		<item>
			<title>Codemattic on "BitmapFontAtlas Problems"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/948#post-5690</link>
			<pubDate>Tue, 28 Jul 2009 09:59:42 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">5690@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>are you sure you havent added anything else with the equivalent to the kTagBitmapAtlas1 tag?
</p></description>
		</item>
		<item>
			<title>riq on "BitmapFontAtlas Problems"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/948#post-5685</link>
			<pubDate>Tue, 28 Jul 2009 09:14:16 +0000</pubDate>
			<dc:creator>riq</dc:creator>
			<guid isPermaLink="false">5685@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>your code seems good to me.<br />
put this:<br />
<pre><code>NSLog(@&#34;who are you: %@&#34;, label1);</code></pre>
<p>right before <code>[label1 setSTring:string];</code></p>
<p>For some reason, <code>label1</code> is treated as an <code>AtlasSpriteManager</code> and not as <code>BitmapFontAtlas</code>.</p>
<p><code>BitmapFontAtlas</code> is a subclass of <code>AtlasSpriteManager</code>.
</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>Codemattic on "Labels vs. AtlasLabels. Labels slow down game. What is the best practice?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/922#post-5656</link>
			<pubDate>Tue, 28 Jul 2009 04:37:22 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">5656@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>jonathan0382, that works!  I did a spotlight search for "java web start", but I guess it doesnt search /System/Library/CoreServices</p>
<p>riq, I didnt try yours, the -kill looked scary, but Im sure it would of worked too. :)</p>
<p>thanks guys
</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-5601</link>
			<pubDate>Mon, 27 Jul 2009 20:05:56 +0000</pubDate>
			<dc:creator>jonathan0382</dc:creator>
			<guid isPermaLink="false">5601@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Ok, here's a fix I found. The source is listed below.</p>
<p>Open this:/System/Library/CoreServices and click on Java Web Start.</p>
<p>After this the .jnlp opens fine in both firefox and safari.</p>
<p>Source:<br />
<a href="http://lists.apple.com/archives/java-dev/2009/Jun/msg00244.html" rel="nofollow">http://lists.apple.com/archives/java-dev/2009/Jun/msg00244.html</a>
</p></description>
		</item>
		<item>
			<title>riq on "Labels vs. AtlasLabels. Labels slow down game. What is the best practice?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/922#post-5496</link>
			<pubDate>Mon, 27 Jul 2009 11:07:17 +0000</pubDate>
			<dc:creator>riq</dc:creator>
			<guid isPermaLink="false">5496@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/22'>codemattic</a>:<br />
<pre><code>/System/Library/Frameworks/ApplicationServices.framework/Framework/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user</code></pre></description>
		</item>
		<item>
			<title>Codemattic on "Labels vs. AtlasLabels. Labels slow down game. What is the best practice?"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/922#post-5483</link>
			<pubDate>Mon, 27 Jul 2009 08:25:33 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">5483@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>you know whats weird - when I click on it in Firefox it asks if I want to open it in Java Web Start (default) - so I click OK - but it opens in Dashcode.  I cant find JWS on my computer - I used to have it.  Could the newer XCode versions have uninstalled it?  Sorry jonathan0382, this used to work for me, but now it doesnt.  Anybody else having this problem?
</p></description>
		</item>

	</channel>
</rss>

