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

  • SEARCH
  • Home
  • 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 6574169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:13:35+00:00 2026-05-25T15:13:35+00:00

im a newbie in the IOS and macOsx development. I have an assignment left

  • 0

im a newbie in the IOS and macOsx development. I have an assignment left to me by one a instructor helping us get the basic of iPhone development. he wants us to duplicate the line runner up. obviously for educational purpose only. now her are my problems or the issues i have that i have no clue of how to get started. If you guys can show me any tutorials that might help me or aid through this. it would be greatly appreciate it.

1- dont know how to generate a moving background./
2- i know how to make my png move around the screen but have yet learn how tell them to do something when they touch. (so jumping i got it cover but not when he touches an object.

thanks for all of you guys that can help.

  • 1 1 Answer
  • 0 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-25T15:13:35+00:00Added an answer on May 25, 2026 at 3:13 pm

    I’m not sure if this is the answer you’re looking for, but for the moving background what you can do is make a really wide image, and then move that image programmatically by using something like the following:

    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:x];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationRepeatCount:y];
    imageX.transform = CGAffineTransformMakeTranslation(5,0);
    [UIView commitAnimations];
    

    This will make your image move for a certain amount of time, you can even set it to repeat if you want.

    Another approach is to make frames of the animation you’d like to create, for example you would make 20 Images for the background animation and then use something like the following:

    imageX.animationImages = [NSArray arrayWithObjects:
     [UIImage imageNamed:@"img1.png"], //You would go all the way up to 20
     [UIImage imageNamed:@"img2.png"],
     [UIImage imageNamed:@"img3.png"],
     [UIImage imageNamed:@"img4.png"], nil];
    
    [imageX setAnimationDuration:x];
    [imageX setAnimationRepeatCount:20];
    [imageX startAnimating];
    

    To tell your player to do something when he touches another object you could use something like the following:

    if (CGRectIntersectsRect(player.frame, enemy.frame)) {
        //Collision Detected
        //Code Goes Here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie to IOS application development. I have to parse an XML document
I'm newbie in iOS development and I have a question. I have a some
I am an iOS development newbie. I have a settings screen which is a
I am an iOS development newbie. I have a tab bar controller with an
I am an ios development newbie. I get an error when I try to
I'm newbie on iOS development and I'm currently testing RestKit 0.9.3 for iOS with
I am newbie for ios development, I am working on a project ,where i
I'm a newbie to iOS programming, I have a project and my requirements are
I am an iOS development newbie. I want to go to another page (CountryViewController)
I am an iOS development newbie. I want to delete a few rows from

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.