Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Random Rocks
View Single Post
Old 02-08-2010, 10:27 AM   #42 (permalink)
MrGreatTutorials
Registered Member
 
Join Date: Aug 2009
Posts: 12
Exclamation PLEASE HELP ME!!!!!!

Quote:
Originally Posted by kdp8791 View Post
I am trying to setup a collision between the falling image and another image. I have setup the following way, but for some reason, instead of going up by 1. It's going up by different amounts like 5, 13, 4, 10, etc...for example If one image touches the other it may go 5 then it will go to 18 if touched again. But according to the code it should only go up by one.

Code:
-(void)checkcollision {
if(CGRectIntersectsRect(floatingball.frame, myRock.frame)) {
		
		flakeCounter = flakeCounter + 1;
		flakeInt.text = [NSString stringWithFormat:@"%d", flakeCounter];
		
	}
}
Hey Im, Kristers and i need to make images fall from top to bottom in iPhone SDK and also collide! I saw your code but i cant understand it, can somebody please send me source code for this app that has got images falling from top to bottom and also collision working? PLEASE!

Thanks, Kristers
MrGreatTutorials is offline   Reply With Quote
 

» Advertisements
» Online Users: 300
22 members and 278 guests
ADY, apatsufas, dacapo, dcool, HemiMG, iosdevjtp, jakerocheleau, leahov, macanacas, MarkC, marto1914, masc2279, morands, MozyMac, PsychoChris, sly24, smithdale87, sneaky, Sunny46, thh022, timle8n1, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,720
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.