I’m trying to add multitouch to my existing game. When I try to iterate CCSet that contains touches I get Bad Access Exception as soon as I call iter**.
bool multitouch = pTouches~~>count > 1;
for ; it != pTouches~~>end;**it)
CCTouch* pTouch = (CCTouch*) (*it);
// Do something with pTouch…
I have used this code in class that extends CCLayer using
I have tried to this in my Scene class that implements CCTouchDelegate and register standard touch delegate onEnter method.
Game itself uses lot’s of targeted touch delegates but I have tried to test without em.
This happens in versions 2.1.0 and 2.1.3.