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.