node.js - npm - how to tell whats installed -
I am trying to check the overlap in my spritekit game and I like to know that when two prints overlap Be there Here's my code to check:
- (BOOL) CheckNode location: (SKSpriteNode *) node {for (SKSpriteNode * arrayNode in self.nodeArray) {if ([node intersectsNode: arrayNode ]) {NSLog (@ "they match!"); return false; } And {nslog (@ "they are not"); Return TRUE; }} Return TRUE; }
It seems to work, but the problem again is how do I know how to move the node? How can I get the overlap amount?
Comments
Post a Comment