Is there an easy way to specify a touch area Rect for a CCMenuItem (i.e. not the default contentSize dimensions).
Some of my buttons are a bit small to touch and I’d like to increase the touch area without scaling the graphics.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could try to use the following:
[CCMenuItem setContentSize:newSize];Where CCMenuItem is the item’s touch area you want to expand and newSize is the new width and height.
Another choice is to create a child class of CCMenuItem and override the corresponding responsible method.