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 > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-26-2011, 04:44 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 30
Anonymous Username is on a distinguished road
Default Camera Controlling (HEEELLLLPPP!!!)

I'm making a very simple platformer, right now you control a green block that can move left and right and can jump all controlled by buttons. But you can move the block off screen and then you can't see whats going or he jumps higher then the top screen. How can you make the camera pan so your always looking at the block?
Anonymous Username is offline   Reply With Quote
Old 12-28-2011, 02:47 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 12
Zanzibar7 is on a distinguished road
Default move everything other than the block

tell it that once the block gets to a certain part of the screen, like 3/4ths of the way to the top, it should stop moving the block and start moving everything else in the opposite direction the block would be moving.
Zanzibar7 is offline   Reply With Quote
Old 12-28-2011, 07:15 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 30
Anonymous Username is on a distinguished road
Default

Quote:
Originally Posted by Zanzibar7 View Post
tell it that once the block gets to a certain part of the screen, like 3/4ths of the way to the top, it should stop moving the block and start moving everything else in the opposite direction the block would be moving.
Uhm could you link an example? I'm not sure how to write that

Edit: Figured it out!!!

Last edited by Anonymous Username; 12-30-2011 at 12:36 PM.
Anonymous Username is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 385
10 members and 375 guests
apatsufas, comicool, Creativ, Dalia, dansparrow, husthlj, LunarMoon, mer10, Murphy, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,677
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, husthlj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0