Tween stopAllByTag

When I use cc.tween().stopAllByTag(0), the editor gives a warning ‘Property “stopAllByTag” is a static member of type Tween’, and in preview it gives error “Uncaught TypeError: cc.tween(…).stopAllByTag is not a function”. stopAllByTarget all produce the error, both functions appear on the documentation api but I cannot use it.

I am using v2.3.3

Hi,
You need to use that syntax:
cc.Tween.stopAllByTag(0);

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.