Tagged Questions
0
votes
1answer
116 views
CCSprite x and y comparison
I have 2 CCSprites and I want to tell if their x and y are equal I tried this:
if(sam.position.x == tom.position.x && sam.position.y == tom.position.y){
NSLog(@"Hooray!");
}
Although I do ...