Hello all,
I want to manually use the draw method present in cc.Sprite class and I want to draw it every frame.Is it possible?
I think this.addChild() can be omitted in such case.
Thankyou.
Hello all,
I want to manually use the draw method present in cc.Sprite class and I want to draw it every frame.Is it possible?
I think this.addChild() can be omitted in such case.
Thankyou.
It is not recommended to do it like that.
You could create a sprite and add it to scene. Game engine will help you to draw it on screen every frame.
Why do you need to custom the drawing by yourself?