invalid use of ‘this’ outside of a non-static member function error?
needs to be You shouldnt need this in the first place.
needs to be You shouldnt need this in the first place.
I ended up using CCDrawNode to drawn the hexagon myself, this way I have the desired hexagonal touch space, and I don’t have to make any extra calculations to check witch hexagon was touched. Here’s the algorithm: