I have a layer, and I want sprites at position (0,0) to be rendered at
the center of the screen.  However, this isn't happening.  The sprite
is instead being rendered at the bottom-left corner.

I figured setting the anchor would have an effect...

class GameView( cocos.layer.Layer ):
        def __init__(self, model ):
                super(GameView, self).__init__()

                width, height = director.get_window_size()
                self.anchor = width // 2, height // 2

...but that didn't make any difference.  What's the deal?

-- 
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.

Reply via email to