If I don’t make all imagea into a plist file, then i could change sprite texture like following:
var type1image = cc.textureCache.addImage(res.doctor_g_png);
sprite.setTexure(type1image);
But I use plist file, I found the code not work. I can’t see the image in the screen.
var type1image = cc.textureCache.addImage("#doctor.png");
sprite.setTexure(type1image);
I don’t sure whether I have a right usage.
Could someone know it?