+ Reply
Results 1 to 2 of 2

Thread: Iphone Gaming

  1. #1
    What's Jailbreak?
    Join Date
    Mar 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Iphone Gaming

    HI,

    I am trying to write a game for apple iphone but am not able to trace a touch at a particular sprite coz when i am using
    - (BOOL)ccTouchesEndedNSSet *)touches withEventUIEvent *)event
    {

    UITouch *touch = [touches anyObject];
    .
    .
    .}
    This function detects the touch for evry object but i want to detect the touch for only a single object.
    Hu to do that with this method ?
    Please help me out.

  2. #2
    What's Jailbreak? haqu's Avatar
    Join Date
    May 2008
    Posts
    17
    Thanks
    29
    Thanked 7 Times in 4 Posts

    my suggestion is to get touch location and then check if it's inside specific object.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts