Hi I am making a little game. The reason I am putting it in the iphone sdk dev topic is because it doesnt have to do with gameplay, but more normal coding that someone might know how to do.
My game is going to have an object falling, for any distance, so thats why i need infinite distance. Is there away to have infinite distance? and how?
My second question is how to make the camera follow the object?
I know that there is no "camera" but you, the reader hopefully know what I am talking about.
maybe you should consider to use cocos2d, a objective-c framework for game development. In this for example already exist a camera object
If you want not use it, you should provide more details (what are you using, what you want to do exactly, etc..), an object falling can be simulated also moving the other objects and keeping it stopped, so that seem that it is falling down.
Ok, here are a few more details.
1) It will be a ragdoll falling, with ragdoll physics of course.
2) In the way I programmed the ragdoll, it has to be falling, I can't have the objects moving around it with the ragdoll stationary.
3) the objects it is falling through will be random.
I was thinking that maybe I could have a 4000 by 4000 scroll view, and have it autoscroll in proportion to where one of the ragdoll's points are. I would then have the random objects dissapear after they left the view, so when the ragdoll hit, say >3800 it would instantly go back to the top, and create more random objects. Tell me if this would work.
Thanks - sumosumo84
Seems like it would be much less confusing to do what dany_dev suggested - ragdoll stationary and everything else around it is moving. This will give the same "falling" effect. The user wouldn't know the difference. Additionally, your view now can be a fixed size and you dont have to worry about placing the doll back at the "top" whenever it reaches the bottom.