invalid use of ‘this’ outside of a non-static member function error?

bool ccTouchBegan(

needs to be

bool DragSprite::ccTouchBegan(

You shouldnt need this in the first place.

Leave a Comment