Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5989155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:03:41+00:00 2026-05-22T23:03:41+00:00

I am creating a game which have similar concept like Tap Tap Ant .

  • 0

I am creating a game which have similar concept like Tap Tap Ant. I am generating dynamic images using NSTimer using following code.

 NSTimer *tmrGenerateImages1 = [NSTimer scheduledTimerWithTimeInterval:0.4 target:self selector:@selector(generateImages) userInfo:nil repeats:YES];

 -(void)generateImages
 {
      UIImageView *tmpImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myImg.png"]];
      [tmpImg setFrame:CGRectMake([self randomXValueBetween:30 andValue:280] , 50, 118, 97)];
      [self.view addSubview:tmpImg];
      [self.view bringSubviewToFront:tmpImg];
 }

 - (float)randomXValueBetween:(float)low andValue:(float)high {
     return (((float) arc4random() / 0xFFFFFFFFu) * (high - low)) + low;
 }

My question is in tap tap ant they are generating 2/3 images at a time and in my case I am able to generate only single image at a time and there is plenty of time user has to tap on it.

Please help me.

EDIT:
BOUNTY

I want to generate dynamic images using NSTimer or any other way as same as the Tap Tap Ant. Please help me in that regards. If solution is offered all the points are yours.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:03:42+00:00Added an answer on May 22, 2026 at 11:03 pm

    If you wan’t your game to be both fast responding and stable, I would really recommend looking into OpenGL or Cocos2d.

    Allocating a UIImageView for every and and having them move bit by bit (you can not interrupt animations with taps) will really make the game… well… slow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a game for the iPad using Phonegap, which means I'm using JavaScript/
I'm creating a game in which I have a somewhat complex method for creating
I am creating a game in which I have a menu with multiple views
I have am creating a game.Then game has a timer 100 sec ,which move
I am creating game which involves some billiard-like balls to bounce on the screen.
I'm creating pages for a small web-based game which must have some background music
I am creating a silverlight card game which talks to a WCF service using
I have a DB in which looks like this: Game ---------------- WinningID (FK) LoosingID
I am creating a platform game in JavaScript using canvas which is entirely tile-based.
I am creating a game with winforms C#. The game contains some images that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.