<?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: Possible bug with scale (Zwoptex texture with offsets)</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/3458</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 02:03:08 +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/3458" rel="self" type="application/rss+xml" />

		<item>
			<title>crmagicxxx on "Possible bug with scale (Zwoptex texture with offsets)"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/3458#post-21212</link>
			<pubDate>Thu, 17 Dec 2009 16:28:34 +0000</pubDate>
			<dc:creator>crmagicxxx</dc:creator>
			<guid isPermaLink="false">21212@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Ok, that was fast. I am afraid next time you'll fix a bug before someone even notice it ;)
</p></description>
		</item>
		<item>
			<title>riq on "Possible bug with scale (Zwoptex texture with offsets)"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/3458#post-21209</link>
			<pubDate>Thu, 17 Dec 2009 15:52:25 +0000</pubDate>
			<dc:creator>riq</dc:creator>
			<guid isPermaLink="false">21209@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>fixed. Issue #667 is a different one, and I think that issue #670 is invalid... I least I can't reproduce it.
</p></description>
		</item>
		<item>
			<title>crmagicxxx on "Possible bug with scale (Zwoptex texture with offsets)"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/3458#post-21194</link>
			<pubDate>Thu, 17 Dec 2009 13:55:07 +0000</pubDate>
			<dc:creator>crmagicxxx</dc:creator>
			<guid isPermaLink="false">21194@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hm, I just saw 2 other issues that are maybe related (or even the same) 667 and 670. Anyway, I submitted this under new issue 671
</p></description>
		</item>
		<item>
			<title>riq on "Possible bug with scale (Zwoptex texture with offsets)"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/3458#post-21184</link>
			<pubDate>Thu, 17 Dec 2009 10:54:12 +0000</pubDate>
			<dc:creator>riq</dc:creator>
			<guid isPermaLink="false">21184@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I've not tested it yet, but could you open a bug on the issue tracker ? thanks.
</p></description>
		</item>
		<item>
			<title>crmagicxxx on "Possible bug with scale (Zwoptex texture with offsets)"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/3458#post-21153</link>
			<pubDate>Wed, 16 Dec 2009 21:39:51 +0000</pubDate>
			<dc:creator>crmagicxxx</dc:creator>
			<guid isPermaLink="false">21153@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I think there is a bug with scale when using zwoptex texture/plist with offsets in combination with CCSpriteSheet (cocos2d 0.9 beta). Here is simple code:</p>
<pre><code>[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@&#34;testing.plist&#34;];

CCSpriteSheet *sheet = [CCSpriteSheet spriteSheetWithFile:@&#34;testing.png&#34; capacity:10];
[self addChild:sheet];

CCSprite *sprite = [[CCSpriteFrameCache sharedSpriteFrameCache] createSpriteWithFrameName:@&#34;spr1.png&#34;];
sprite.position = ccp(160,240);
[sheet addChild:sprite];

id action1 = [CCScaleTo actionWithDuration:5 scale:0];
[[CCActionManager sharedManager] addAction:action1 target:sprite paused:NO];</code></pre>
<p>Watch the animation and you'll see strange behavior. spr1.png is 320x480 image with most pixels transparent, so when trimmed in Zwoptex, there are offsets. Same code works ok if sprite isn't added to CCSpriteSheet but to scene/layer for example.</p>
<p>I don't think you need actual images to test this, just use any zwoptex texture with offsets...
</p></description>
		</item>

	</channel>
</rss>

