Narendrabrsoft / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

Rendering With CCSpriteSheet Doesn't Respect Grandchildren #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create CCSpriteSheet
2. Add CCSprite child
3. Add CCSprite grandchild with anchor point

What is the expected output? What do you see instead?
The rendering should appear the same as using renderSelf. Instead, anchor 
points of grandchildren have no effect.

What version of the product are you using? On what operating system?
Latest from source. Not sure if this bug exists in the iphone version of 
cocos2d since I am only using android.

Please provide any additional information below.

Original issue reported on code.google.com by ghemp...@gmail.com on 20 Dec 2010 at 4:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm seeing this issue as well. I am porting some code from iPhone to Android, 
so I know it is not an issue on the iPhone.

Original comment by shasha...@gmail.com on 8 Jan 2011 at 1:55

GoogleCodeExporter commented 8 years ago
Glad to know its not just me. I worked around this by just using some child 
positioning hacks. I'm definitely interested to know if this repros on the 
iphone.

Original comment by ghemp...@gmail.com on 8 Jan 2011 at 2:24

GoogleCodeExporter commented 8 years ago
I have a fix for this and will be checking it into github shortly.

Original comment by shasha...@gmail.com on 12 Jan 2011 at 1:30

GoogleCodeExporter commented 8 years ago
Fixed on GitHub: 
https://github.com/ZhouWeikuan/cocos2d/commit/d75945401697a29a65638aaf97a239e837
561e10

Original comment by shasha...@gmail.com on 12 Jan 2011 at 1:39

GoogleCodeExporter commented 8 years ago
Awesome thanks for the fix. You guys rock!

Original comment by ghemp...@gmail.com on 12 Jan 2011 at 1:40

GoogleCodeExporter commented 8 years ago
Actually, it may not be fixed in all cases. Can you check with your code and 
let me know? The change is still correct, but it may not be totally fixed.

Original comment by shasha...@gmail.com on 12 Jan 2011 at 2:12

GoogleCodeExporter commented 8 years ago
I can confirm that this has fixed the instance of the issue I was encountering! 
Thanks.

Original comment by ghemp...@gmail.com on 21 Jan 2011 at 9:38

GoogleCodeExporter commented 8 years ago
Complete fix with this commit: 
https://github.com/ZhouWeikuan/cocos2d/commit/26f7bcdc0c7ade0e8a93a7a4246a70f11c
94c062

Original comment by shasha...@gmail.com on 11 Aug 2011 at 1:48