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 just isn’t wanted and you’ll simply use a scheduled replace, what’s the most effective technique 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 perform extra environment friendly?
If it’s a easy replace of the place, it’s extra environment friendly to make use of replace.