this is where i put the self.isAcc... you know :)
-(id) init
{
if( (self=[super initWithColor:ccc4(0,0,0,0)] )) {
[FlurryAPI logEvent:@"Space Demo Started"];
CGSize winSize = [[CCDirector sharedDirector] winSize];
self.isTouchEnabled = YES;
ballsLeft = 10;
MenuExist = FALSE;
blockerBall = 1;
blockerExist = FALSE;
/*
CCSprite * bg = [CCSprite spriteWithFile:@"Blackblue.png"];
bg.position = ccp(160, 240);
[self addChild:bg z:-1];
*/
// enable accelerometer
self.isAccelerometerEnabled = YES;
like that, and then it continues
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
//do stuff in here
}
and then that is how i use the accelerometer. do i have to call an update on it like this kind of thing?
[self schedule:@selector(tick:)];