On Tue, Aug 19, 2008 at 7:49 PM, Kao Cardoso Felix <[EMAIL PROTECTED]> wrote:
>
> On Tue, Aug 19, 2008 at 5:32 PM, Lucio Torre <[EMAIL PROTECTED]> wrote:
>>
>> could you please post the code you use to create that?
>
> Hi Lucio,
>
> The code is posted here: http://pastebin.com/md0ba0a8
>
> When I run the code on my PC the face animation and the feet are
> anchored by their center at the top-right corner of the body image of
> my character. The annoying thing is that after positioning the face
> and feet on their right places the rotation of the character goes all
> wrong 'cause the face and feet would rotate around a different point
> that the body, causing the character to be completely disjointed.
>
As you are using your own images, you have to set the image anchor
yourself at the center. when you create sprites using:
sprite = Sprite("myimage.png")
cocos does that. remember that images have anchors too.
Lucio.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---