On Thu, Sep 3, 2009 at 3:24 PM, Chris Laux <[email protected]> wrote:
> > Have I missed something in the docs, or is there no way to scale a sprite's > width and not height (or vice versa)? The only way I can see to scale a > sprite > is with its scale property, and that's just a single float. > > > -- > -chris > > You are right, the cocos scale is scalar, ie scales both coords. You can add in your .draw() something like scale = ... glScalef(scale[0], scale[1], 1) to get independent x y scaling -- claudio --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
