Touch Accuracy

LBGLBG Member Posts: 277
edited January 2012 in Working with GS (Mac)
Hi all,

I have a scene (iPhone game) with a camera that follows my player actor around an environment that is 960x640 (so double wide and double high). In this scene I have another actor that is spinning. When I touch this actor I want it to stop spinning. To do this I have set it up using, when touch is pressed it simply change a boolean called spin to false. This works fine when the camera is not moving but when it is it takes several attempts to get it to stop spinning. Has anyone else found this and/or have a solution?

Many thanks,

LBG :)

Comments

  • POMPOM Member Posts: 2,599
    edited January 2012
    How about increasing the area of the touch ?
    Take a look of this video from TSB :
    http://gshelper.com/?p=366

    He uses magnitude detection instead of "touch is pressed" , with this method you can determine how big the collision area will be !
    BUT ! , because you said your scene is 960x640 , don't forget to add the camera offset (origin) to the equation !

    :D
    Roy.
  • LBGLBG Member Posts: 277
    Thanks Roy. I'll take a look.
    LBG :)
Sign In or Register to comment.