I have a button that performs a generic function. However, I want to call a different function if the bottom left part of the button is tapped. I just like to ask what is the better way to do this?
I am thinking of overriding ccTouchesBegan and get the location where it is tapped and perform a different function based on the bottom left position range.
Thanks!
Thanks LearnCocos2D for your answer (written as a comment to the question).
To answer the question:
If it is, then call function2. If it is not, then call function1.