title: How to make a sprite jump using CCJumpTo in cocos2d-x
body: <p>I am new to cocos2d-x and I am developing a game in xcode using cocos2d-x 2.0.4. In that I want to make my sprite jump.So that i use the following code. Using that code it is working, but the problem is if i tab the screen continuously the sprite is keep on jumping(like flying). But i want my sprite should not jump until the first jump finished. Following is code,</p>
  
  <pre><code>void PlayScene::ccTouchesBegan(cocos2d::CCSet* pTouches, cocos2d::CCEvent* pEvent)
  {
  CCTouch* touch = (CCTouch* )pTouches-&gt;anyObject();
  CCPoint location = touch-&gt;locationInView();
  location = CCDirector::sharedDirector()-&gt;convertToGL(location);
   CCJumpTo *pJumpTo = new CCJumpTo();
  pJumpTo-&gt;initWithDuration(1, ccp(winwsize/5.5,winhsize/2.2), 100, 1);
  man-&gt;runAction(pJumpTo);
  }
  </code></pre>
  
  <p>Please help me to solve it.</p>