I've been getting crashes when playing these animations and the values in the object appear to be 'junk'.
I think these animation variables need to be declared in the same manner as all the other animations for the other game objects - that is, as retained pointers, in order not to get garbage-collected.
The following pattern should be added in digger.h
- Code: Select all
@property (nonatomic, retain) CCAnimation *rotateAnim;
@property (nonatomic, retain) CCAnimation *drillAnim;
and the corresponding '@synth..." in the .mm file
This seemed to clear up the problem in my version...