On Sat, Jul 25, 2009 at 7:07 PM, lhl<[email protected]> wrote:
>
> I'm just getting started w/ Cocos2D on OS X - overall, it's qutie
> nice, but I've noticed that when applying a slow (10-20s) ScaleBy/
> ScaleTo effect, the sprite becomes "jittery" for lack of a better word
> while it does this. Are there any sprite filtering or scene anti-
> aliasing options to smooth this out? Am I doing this the wrong way?
> (I'm trying to get a Ken Burns-ish effect, similar to the Apple Photos
> screensaver)
>
> Thanks in advance for the help!
Sorry for the delay.
Try using a subclass of sprite like this:
class MySprite( Sprite ):
def _update_position(self):
ax = cos * sin
ay = cos * sin
bx = cos * sin
by = cos * sin
if self.render_in_subpixel:
self._vertex_list.vertices[:] = [ax, ay, bx, by, cx,
cy, dx, dy]
else:
self._vertex_list.vertices[:] = [ int(ax), int(ay),
int(bx), int(by), int(cx), int(cy), int(dx), int(dy)]
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
-~----------~----~----~----~------~----~------~--~---