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

Reply
 
LinkBack Thread Tools Display Modes
Old 06-12-2010, 05:26 PM   #1 (permalink)
Teenage App Developer
 
AlexGreeneApps's Avatar
 
Join Date: May 2010
Location: United States
Posts: 76
Send a message via AIM to AlexGreeneApps
Default Game Timer

Hi

I'm creating a quiz type application similar to the impossible quiz or the moron test. I've finished all 50 questions (phew...) but now I would to add a couple more features. I have a main menu and the 50 questions but I would like it so that when the quiz begins, I little timer appears in the bottom corner, showing you how long you have been playing for. Then at the end, once you finish all of the questions, the timer would stop and display how long it took you to complete.

I'm sort of a noob, so sorry if there is an obvious answer..

Thanks !
Alex
__________________

Want a cool new way to play the drums?
Download Doodle Drummer today and get:
-8 Awesome drumsets
-Doodle scribble interface
-High Quality sounds & More!
Download Now for only 99 cents

Find me on Twitter @AlexGreeneApps
AlexGreeneApps is offline   Reply With Quote
Old 06-13-2010, 08:01 AM   #2 (permalink)
A Single-Serving Friend
 
Join Date: Mar 2010
Location: Groningen, NL
Posts: 491
Default

Hey Alex,

one option would be to use an NSTimer.

Another idea might be use NSTimeInterval. I have never done this myself and am not sure whether it's possible to use it for your purposes but it might be worth checking it out.

Hope this helps.

Cheers,
Bob
__________________
We are God’s middle children, according to Tyler Durden, with no special place in history and no special attention.

Consider saying thanks by buying my app. :]
Robert Paulson is offline   Reply With Quote
Reply

Bookmarks

Tags
game, timer

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: 253
23 members and 230 guests
@sandris, ADY, Dani77, diyora, FAED, fredidf, F_Bryant, GHuebner, HDshot, JasonR, mer10, Oral B, prchn4christ, Rudy, smithdale87, Speed, spiderguy84, stekki, tgjorgoski, Thompson22, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,752
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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