Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Animating CCSprite not working?
  2. mySprite = [CCSprite spriteWithFile:@"Image1.png"];
  3.         [mySprite setPosition:ccp(100, 300)];
  4.         [self addChild:mySprite z:1 tag:1];
  5.        
  6. CCSequence *moveSequence = [CCSequence actions:[CCMoveTo actionWithDuration:5 position:ccp(120, 400)],[CCMoveTo actionWithDuration:4 position:ccp(100, 300)], nil];
  7.     [mySprite runAction:[CCRepeatForever actionWithAction:moveSequence]];