Quote:
Originally Posted by Sesa
Code:
-(void)CheckCollision {
if (CGRectIntersectsRect(myRock.frame, Elephant.frame)) {
alert = [[UIAlertView alloc] initWithTitle:@"Enter Some Text" message:@"" delegate:self cancelButtonTitle:@"Done" otherButtonTitles:nil];
[alert show];
[alert realase];
}
}
My Collision dosent work? 
|
You have an array of rocks; you need to loop through the array and check each rock against the elephant. Something like the loop in this post:
http://www.iphonedevsdk.com/forum/ip...tml#post150018
ZunePod: newView doesn't need to be in the .h file, because it's just a temp variable we're using to create the new views. The array meteorArray should be in the .h file, though.