Hi everyone, I have used time delay to stop my walk sprite character and proceed to next sprite which is standing character through sequence function & time delay. My problem is, when I try to view on another computer, It exceed to the desired x position of character.
here’s my code
var walk = cc.CallFunc.create(function(node)
speed = 6; //speed of walk
var standing = cc.CallFunc.create(function(node)
this.stop(walk); //from walkAnim function
cc.DelayTime.create(5), //time delay
Instead of using time delay, Is it possible to stop “walk sprite animation” and proceed to next scene which is “standing animation” when it reached to the specific X position?
Sorry for my English and Thank you in advance and GOD bless.