I am in a strange problem-
- I am using a virtual D-pad.
-
So when i move my virtual joystick player moves , But if i tap/press my button at that time(while my touch remains on joystick) press/tap button not works, because touchBegin/touchMove not called since my previous touch on joystick remains.
-
So what to do if i want player moving with action(by pressing button).
You have to turn on multiple touch support by adding the following line in the application delegate’s
applicationDidFinishLaunching:Then your
ccTouchBeganwill called for 2nd, 3rd touches and so on.