Bear
#1
I create CCProgressTimer and it work fine when I run single action for example:
progressTimer->runAction( CCProgressTo::actionWithDuration( 10, 100 ) );
but when I try using CCSequence for runaction app will crash in emulator, code below:
CCProgressTo* progress1 = CCProgressTo::actionWithDuration( 5, 50.0f ); CCProgressTo* progress2 = CCProgressTo::actionWithDuration( 5, 100.0f ); progressTimer->runAction( CCSequence::actions( progress1, progress2 ) );
My code work fine when running on XCode (Iphone) but always crash when using eclipse (Android), Please advice.
zhangxm
#2
The codes are platform independent. Would you test it on real phone?
Did you find where it crashed at?
Bear
#3
I does not test on real phone yet, just test only emulator on both platform.
zhangxm
#4
Did you build .so?
Did you copy the resources into assets?
You can do these work by invoke build_native.sh.
Did the .so packed into .apk?
You can use eclipse to do it.
Android developing is more complex than iOS.
Bear
#5
Thank you for response.
I had resolved it, from code above I missing NULL at the last parameter of CCSequenct::actions
Just rewrite function to
progressTimer->runAction( CCSequence::actions( progress1, progress2, NULL ) );
and it works fine.