tags:

views:

97

answers:

1

Hi, I'm relatively new to iphone coding, i am trying to design a simple game whereby i can swing the iphone to trigger the firing of a cannon at the bottom of the screen and hit a moving object.

I tried using accelerometer but does not really work out well or maybe have to do with the coding, can someone help me out here? thanks a lot!

+1  A: 

The problem is in your code. Here is a nice tutorial for using the accelerometer that might help you out. Search for iphone accelerometer example for more of the same.

progrmr