i am doing this to check colslsion on touchBegan()
UITouch *toucha = [[event allTouches] anyObject];
CGPoint locationa = [toucha locationInView:toucha.view];
// rn d
if(CGRectContainsPoint(newEnemy.frame, locationa))
{
printf("HIT");
[newEnemy removeFromSuperview];
}
|