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 10-27-2010, 10:57 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 4
Arbel is on a distinguished road
Default Question about Rhythm game Im working on

Ok I am a complete newbie at game design and have a question. Ive been working on a rhythm game for the iphone for the past few months now. The game runs well and is getting closer to being finished, however, being my first major project I feel like the underlying way I am doing it is very flawed. We are shooting for 60 fps and it runs mostly at that speed, with some occasional bumps to around 50. Let me explain. For reference I am using Cocos2d and actions with sprite frames to animate my sprites.

The game has ring like objects that appear about 500 milliseconds before a beat and shrink to the size of one of the static touch circles on the screen. (Very similar to Ouendan/Elite Beat Agents) For each song, I have a custom file that contains each note of my song by the millisecond value when it should be hit. In my main loop I check the AVAudioPlayer.currentTime variable and compare with the note value - (500 milliseconds). Then at that point I create the animation to run for 500 milliseconds and then check the AVAudioPlayer.currentTime variable for accuracy.

I have a feeling this is flawed. Can I be sure my animation will always take 500 milliseconds? Should I instead be checking the current frame for timing? Will fps fluctuations mess up this logic?

I dont know and would really appreciate some insight. Thank you!
Arbel is offline   Reply With Quote
Reply

Bookmarks

Tags
avaudioplayer, cocos2d, iphone, rhythm game, timing

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: 404
11 members and 393 guests
7twenty7, ChrisYates, djohnson, gmarro, hussain1982, Kirkout, Retouchable, skrew88, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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