New issue
 Projects > js > Issues > Bug #4055

RotateBy Y axis doesn't work on canvas

Bug #4055 [New]
ZippoLag 2014-02-17 13:20 . Updated over 2 years ago

I don't know if this is a known issue (or even impossible due to canvas renderer's nature), but the RotateBy method has no effect if it is called with a delta for Y axis rotation. It does, however, work just fine if renderMode is set to WebGL.

More information in this thread:

ludingping 2014-03-05 06:16

Yes, RotateBy Y axis doesn't support on Canvas Mode, canvas 2d context doesn't support this feature.

Our action tests shows this message on ActionRotateXY test.

ZippoLag 2014-03-05 13:44

I see. What about "faking it" then? For example: one could animate ScaleX from 1 to 0, then flip the image and scale it back from 0 to 1, it won't look as good as RotateY, but I guess it's better than nothing?

Atom PDF

Start date:2014-02-17
Due date:
% Done:


Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.