Thanks for the replies.
I am using the most recent version with Xcode developing for iOS
Here is the code with GetPointerState
float touch_X, touch_Y;
if(agk::Timer() < MAX_TIMER){
if(agk::GetPointerState() ){
touch_X = agk::GetPointerX();
touch_Y = agk::GetPointerY();
if (agk::GetSpriteHit(touch_X, touch_Y) == BUG_INDEX){
agk::PlaySound(1);
bugHit++;
drawNewBug();
}
}
}
When the user has touched the screen the statement should run collecting the values for where the pointer was pressed. It then runs those values where the pointer was pressed to see if it matches the Bug Sprite location (Which is random)
If it has hit the bug then a sound will play, score added too and a new bug generated.
I am not sure how to tell what the GetPointerState() function is returning
Hope that helps a little