sourcemars / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCSprite must be created with some source file(not like the iphone), or will get null exception #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I mean can I created a CCSprite and init it just like below
CCSprite mySprite = CCSprite.sprite();//here, have to give an avilable source 
mySprite.addAnimation("myanimation",1.0f);

When you created a CCSprite ,you have to create it  and give it an avilable 
texture,or will get null exception.

Original issue reported on code.google.com by walkerD...@gmail.com on 23 Mar 2011 at 2:03

GoogleCodeExporter commented 8 years ago
Maybe you should give a try to public CCSprite()?

Original comment by opengen...@gmail.com on 23 Mar 2011 at 10:50

GoogleCodeExporter commented 8 years ago
thank you ! I did this .

Original comment by walkerD...@gmail.com on 26 Mar 2011 at 7:21

GoogleCodeExporter commented 8 years ago

Original comment by opengen...@gmail.com on 5 Apr 2011 at 9:28