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 04-09-2010, 08:48 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 3
Default making a simple game

Hi all.

I need some help to make my simple game.

The player needs to type in some numbers before the timer goes off.

What i also want it to do is to come up with a push notification a couple of minutes before the timers is out. If the player is not in the game. I have no experiance with push, so i need help to set all of that up

By my understanding the NStimer wont work here because the NStimer only works within the game. So what else can i use?

/aleks
aleksander.hansson is offline   Reply With Quote
Old 04-10-2010, 12:14 AM   #2 (permalink)
iPhone SDK learner
 
Join Date: Feb 2010
Location: Illinois, USA
Posts: 417
Default

Quote:
Originally Posted by aleksander.hansson View Post
Hi all.

I need some help to make my simple game.

1. The player needs to type in some numbers before the timer goes off.

2. What i also want it to do is to come up with a push notification a couple of minutes before the timers is out. If the player is not in the game. I have no experiance with push, so i need help to set all of that up

3. By my understanding the NStimer wont work here because the NStimer only works within the game. So what else can i use?

/aleks
1. Okay, so what do you need help with?

2. Let me google that for you

3. Don't know.
Batman is offline   Reply With Quote
Old 04-10-2010, 05:04 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 3
Default

Quote:
Originally Posted by Batman View Post
1. Okay, so what do you need help with?

2. Let me google that for you

3. Don't know.
okay, maybe i was a little to fast.

What I want is a box where the user has to type in the correct values. If the user fails to do that before the timer is off he will loose the game.

I am not sure where and how to type in the values.
aleksander.hansson is offline   Reply With Quote
Old 04-10-2010, 07:16 AM   #4 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 3
Default

Quote:
Originally Posted by Batman View Post
1. Okay, so what do you need help with?

2. Let me google that for you

3. Don't know.
1. I need help with the code to type in the numbers. Where and how do I set the values that needs to be typed?

2. Thank you

3. I got a timer working rightnow counting from 10. When it reaches 0 it goes to a Game Over screen. Perfect. At the Game Over screen i have a play again button. When it gets pushed I want it to start over from 10 but it goes -1 -2 -3 -4 and so on. Do anyone have a fix for that?
aleksander.hansson is offline   Reply With Quote
Old 04-14-2010, 02:40 AM   #5 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 41
Default

3. Correct, and NSTimer will not work, because none of your code runs once you exit an app.

However, once OS 4.0 comes out, you can use local notifications which should be a lot simpler than the existing push (which have to go through a server). You're probably better off just using those instead of trying to figure out push.
__________________
New iPad App:
Gemma, $2.99

=====

As featured by Apple in 3 countries: Touch Ski 3D, $1.99

TouchArcade Review:
"I actually found it hard to put the game down in order to write this post (just one more run down the slopes...)" - TouchArcade.com
http://toucharcade.com/2009/04/10/to...on-the-slopes/

Video Preview: http://www.naquatic.com/video/

=====

Naquatic Software

Touch Ski 3D Lite, Free!
Smittens is offline   Reply With Quote
Old 06-17-2010, 11:23 PM   #6 (permalink)
Cool Person
 
Join Date: Jun 2010
Location: Minnesota
Posts: 66
Send a message via Skype™ to mitchsamuels
Default

Quote:
Originally Posted by aleksander.hansson View Post
Hi all.

I need some help to make my simple game.

The player needs to type in some numbers before the timer goes off.

What i also want it to do is to come up with a push notification a couple of minutes before the timers is out. If the player is not in the game. I have no experiance with push, so i need help to set all of that up

By my understanding the NStimer wont work here because the NStimer only works within the game. So what else can i use?

/aleks

I really hope you are not talking about making a LOST 108 minutes app where you have to type 4 8 15 16 22 43 or whatever.
mitchsamuels 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: 354
21 members and 333 guests
ADY, Dani77, Duncan C, e2applets, HemiMG, Herbie, JasonR, keeshux, linkmx, macquitzon216, mer10, Monstertaco, prchn4christ, Promo Dispenser, Robiwan, sebasx, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,881
Threads: 89,228
Posts: 380,760
Top Poster: BrianSlick (7,129)
Welcome to our newest member, macquitzon216
Powered by vBadvanced CMPS v3.1.0

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