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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-06-2010, 11:18 AM   #32 (permalink)
smasher
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Quote:
Originally Posted by iPhoneDevelopment View Post
It was B: a design error. I have thoroughly changed the movement of the character, and everything now works as it should .

How do I remove the blocks that have fallen off the bottom of the screen (as the simulator seems to freeze after a certain number of blocks have fallen; I'm guessing due to memory issues)?
Excellent! Sorry I couldn't help more, but you know more about your project now than I do.

You can have the loop that's scrolling the "stopped" blocks also check if the block is off of the screen, and remove the block if it is. There's a trick though -- you can't modify an array while you're looping through it using the for (X y in z) method -- so post your loop that's moving the "stopped" blocks and we'll fix it up.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 516
8 members and 508 guests
cch4d10, Domele, kasumar, manop_cs, Newbie123, RockBaby, SuperDietGenius, Thompson22
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,446
Threads: 94,031
Posts: 402,605
Top Poster: BrianSlick (7,978)
Welcome to our newest member, larueta13
Powered by vBadvanced CMPS v3.1.0

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