Home Game Development How to make Movement Code Efficient – Cocos Creator

How to make Movement Code Efficient – Cocos Creator

0
How to make Movement Code Efficient – Cocos Creator

[ad_1]

Hi, I’m making a platformer sport with Cocos Creator (v2.x), and I learn this dialogue. I used to be questioning, because the motion system just isn’t wanted and you may simply use a scheduled replace, what’s the best strategy 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 undoubtedly use that, however I’m additionally curious, is simply utilizing setPosition within the replace perform extra environment friendly?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here