title: Cocos2d CCMenuItem  animation upon selection
body: <p>I have a <code>CCMenu</code> with 5 <code>CCMenuItem</code>s. When the user touches a menu item, I want the menu item to move to the right 10 pixels, to distinguish it from the others. I tried making each menu item a global variable so I could say: <code>if (item.isSelected) { [item runAction:blah]; }</code> But this didn't do anything. This is my code so far:</p>
  
  <pre><code>CCLabelTTF *sin = [CCLabelTTF labelWithString:@"Single Player" dimensions:labelSize alignment:UITextAlignmentLeft fontName:font fontSize:20];
  item1 = [CCMenuItemLabel itemWithLabel:sin target:self selector:@selector(goToSinglePlayer:)];
  
  CCLabelTTF *spl = [CCLabelTTF labelWithString:@"Splitscreen" dimensions:labelSize alignment:UITextAlignmentLeft fontName:font fontSize:20];
  item2 = [CCMenuItemLabel itemWithLabel:spl target:self selector:@selector(goToSplitscreen:)];
  
  CCLabelTTF *ach = [CCLabelTTF labelWithString:@"Achievements" dimensions:labelSize alignment:UITextAlignmentLeft fontName:font fontSize:20];
  item3 = [CCMenuItemLabel itemWithLabel:ach target:self selector:@selector(goToAchievements:)];
  
  CCLabelTTF *str = [CCLabelTTF labelWithString:@"Store" dimensions:labelSize alignment:UITextAlignmentLeft fontName:font fontSize:20];
  item4 = [CCMenuItemLabel itemWithLabel:str target:self selector:@selector(goToStore:)];
  
  CCLabelTTF *set = [CCLabelTTF labelWithString:@"Settings" dimensions:labelSize alignment:UITextAlignmentLeft fontName:font fontSize:20];
  item5 = [CCMenuItemLabel itemWithLabel:set target:self selector:@selector(goToSettings:)];
  
  CCMenu * mainMenu = [CCMenu menuWithItems:item1, item2, item3, item4, item5, nil];
  
  [mainMenu setColor:ccBLACK];
  [mainMenu alignItemsVerticallyWithPadding:10];
  mainMenu.position = ccp(90, 90);
  
  [self addChild:mainMenu];
  
  if (item1.isSelected) {
      [item1 runAction:[CCMoveTo actionWithDuration:1.0f position:ccp(120, 90)]];
  }
  </code></pre>
  
  <p>My question is: how can I achieve the effect I mentioned earlier? I want the selected <code>CCMenuItem</code> to move out to the right 10 pixels when the user touches it but doesn't release, and then go back to its normal position when the touch leaves that menu item. Also, where should I put this animation code? In my <code>init</code> function? Thanks for the help</p>