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 03-25-2009, 02:57 PM   #3 (permalink)
LeopardDevX
iPhone Developer
 
Join Date: Mar 2009
Posts: 222
Arrow Thanks..

Quote:
Originally Posted by smasher View Post
It's going to depend a lot on how you built your game. I assume when you first start the game, you have code that puts all of the blocks on the screen, puts the ball and paddle into position, and sets the score to zero?

If you put all of that code into a method called, lets say, "resetGame" , then you can use that method twice - once when you start the game, and again when they click replay.

Is there something in particular you need help resetting, like removing subviews you've added?


Thanks for reply...



I have no problem removing or adding subviews....


I tried it because i have a method to start the game....,, but i have placed the bricks with IB.
so the removed bricks doesnt pop up again.....
Isnt there an easier way to restart a view/level??


Regards...
__________________
Thank You.

Last edited by LeopardDevX; 03-25-2009 at 03:04 PM.
LeopardDevX is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,808
Threads: 89,205
Posts: 380,623
Top Poster: BrianSlick (7,129)
Welcome to our newest member, kaileymo123
Powered by vBadvanced CMPS v3.1.0

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