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

View Single Post
Old 03-17-2010, 11:38 AM   #1 (permalink)
davejas69
Registered Member
 
Join Date: Dec 2008
Posts: 259
davejas69 is on a distinguished road
Default Need a better approach for a reaction style game

I have an idea for a reaction style game, the basic idea of which is that an image such as
a cherry or an apple displays for a short time and it is up to the player to tap a button or miss
tapping the button and losing a point of health.

The way I have done it is to have an array, in this case a switch-case juggle between methods...


How it works is, there is an variable at the start of the game that is set to 0. The button for each image is
made visible while the timer is running and the player is supposed to tap it. The IBAction for the button
simply changes the variable to "1" and the method checks for a 1 or a 0 to see if the button had been
pressed in the alloted time or not.




However, it runs really jerky and sporadic. Wondering if there is a better way of doing this.

Last edited by davejas69; 03-17-2010 at 11:41 AM.
davejas69 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,540
Threads: 94,063
Posts: 402,674
Top Poster: BrianSlick (7,989)
Welcome to our newest member, duke22
Powered by vBadvanced CMPS v3.1.0

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