문제

I have created a sprite sheet with zwoptex. Then I just dragged the .plist and .png files to my Cocos Builder project. After this I wanted to take a sprite frame and set it to a sprite:

enter image description here

But the sprite image is empty !! Af first I thought it was just empty in Cocos Builder, and that it must have been working correctly when imported to a project. But if I try to run that scene with CCBReader I still see an empty sprite. Why?

도움이 되었습니까?

해결책

I discovered that the plist format was invalid, I created it with zwoptex and then I renamed it, so the plist didn't contain the true file name. I recreated it from scratch with zwoptex and now the sprite frames are being recognized from Cocos Builder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top