Tuesday, October 18, 2022
HomeGame DevelopmentTips on how to make Motion Code Environment friendly - Cocos Creator

Tips on how to make Motion Code Environment friendly – Cocos Creator


Hello, I’m making a platformer recreation with Cocos Creator (v2.x), and I learn this dialogue. I used to be questioning, for the reason that motion system shouldn’t be wanted and you may simply use a scheduled replace, what’s the most effective option to code the motion of a personality/characters (with code examples offered)?


you need to use cc.tween:Tweening · Cocos Creator

Thanks for the reply! I’ll positively use that, however I’m additionally curious, is simply utilizing setPosition within the replace operate extra environment friendly?

If it’s a easy replace of the place, it’s extra environment friendly to make use of replace.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments