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 01-06-2010, 08:41 PM   #26 (permalink)
smasher
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Default

I could go up by fours if flakeCounter is declared as a pointer - int* instead of int.

Otherwise... do you move or remove the rock after you find a collision? If not, then you may have the same collision again on the next frame and your flakeCounter will increase very quickly, maybe too quickly for you to see.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 292
22 members and 270 guests
ADY, antonwilliams, apatsufas, dacapo, dcool, HemiMG, iosdevjtp, jakerocheleau, leahov, 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:10 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.