Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a sliding menu for my game something like angry birds level selection but I'm having problem with buttons. If I accidentally touch any of the buttons while swiping the level starts to load.

share|improve this question

It sounds like the level loads when the button receives ccTouchMoved. Try to make the level load when the button receives ccTouchEnded.

share|improve this answer

Unsure what the equivalent would in coco be but maybe make the buttons touch intent where as if they are touched for a length of time then start level otherwise ignore, you should be able to swipe across them all without being on a single button long enough to start the level.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.