I added a sprite at some position
I added another sprite at same position for ProgressBarTimer.
They are not in the same position.
If i change the first sprites anchorpoint to 0,0 then they are overlapped.
var sprite1 = cc.Sprite.create("res/1.png");
sprite1.setPosition(cc.p(160, 400));
sprite1.setAnchorPoint(cc.p(0.5, 0.5));
this.addChild(sprite1);
var sprite2 = cc.Sprite.create("res/2.png");
sprite2.setPosition(cc.p(160, 400));
sprite2.setAnchorPoint(cc.p(0.5, 0.5));
var progressTimer = cc.ProgressTimer.create(sprite2);
progressTimer.setAnchorPoint(cc.p(0.5, 0.5));
progressTimer.setPercentage(100);
progressTimer.setPosition(cc.p(160, 400));
progressTimer.setType(cc.ProgressTimer.TYPE_RADIAL);
this.addChild(progressTimer);
There two sprites must be overlapped. But they are not.
If i add anchorPoint(0, 0) to sprite1 then, they are overlapping.
What is the problem?