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

View Single Post
Old 02-02-2010, 11:36 PM   #23 (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

The line "if (firstSwipe = true)" should use == instead. One equals sign sets the value of a variable, two does comparison. Easy mistake!

If you want it to look like the screen is scrolling up (blocks, even stopped ones are scrolling down) then you'll have to move every block down by a few pixels, even the stopped ones. I'd put two more loops at the bottom of your moveBlocks method to scroll everything down a little.
__________________

Free Games!

Last edited by smasher; 02-02-2010 at 11:39 PM.
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 350
17 members and 333 guests
ADY, apatsufas, Dattee, dcool, Desert Diva, HDshot, HemiMG, ilmman, jakerocheleau, mer10, michelle, nobre84, Robiwan, smithdale87, thh022, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,724
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:24 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.