@agriz wrote:
Sir,
for(var i = 0; i < 4; i += 1) { sprite = new cc.Sprite("sameimage.png"); this.addChild(draggable); }
So, I create the same image for 4 times.
And i need to create those four images again with different name.Is it good idea creating them multiple times?
Is there any other improved way? So it wont be recreated every time?Thanks
Posts: 6
Participants: 2