On Thu, Sep 3, 2009 at 6:22 PM, Chris Laux <[email protected]> wrote:

>
> On Thursday 03 September 2009, claudio canepa wrote:
> > 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
> >
>
> Very nice... that almost works ;)
>
> I forgot to mention that I'm using ScrollingManager, RectMapLayer,
> ScrollableLayer, etc. Is there anything else I need to do to take into
> account
> the scrolling stuff?
>
>
> --
> -chris
>
>
>

Uh-Uh. I dont know, sorry.
But if a quick and dirty test show problems, I suggest to forget about using
it. Coord changes spanning over two three classes deep could be a time
sinking hole. You are doing pyweek, right ?
Or, try to ask at #pyweek IRC channel

--
claxo

>
>

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