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 3398222
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:37:23+00:00 2026-05-18T04:37:23+00:00

I have game application (cocos2d) in which, a ball is to be shooted from

  • 0

I have game application (cocos2d) in which, a ball is to be shooted from a cannon, this ball travels through a trajectory path and land on a building. Now the problem is that according to the requirement I have to increase the size of the background image due to which my building image is not visible on first view and with the ball traveling i have to drag the background image with out disturbing the trajectory path of the ball. Can some one help me out in this regards. To clarify question bit more I am also attaching a image. Thanks in advance.

  • 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-18T04:37:23+00:00Added an answer on May 18, 2026 at 4:37 am

    what you have are two different coordinate spaces that should be independent from each other.
    The ball should move in the “world” coordinate space, independently from the “screen” coordinate space. Of course that the “world” must be displayed on the “screen”, so you must convert the “world” coordinate space to “screen” coordinate space, which in you case is a simple translation that can be done by adding an offset.

    On iPhone, you can simply put all the “world objects” inside a UIView and move that ‘UIView’ left and right, while the world objects move relatively to the “world” inside that view, and the conversion from “world coordinate space” (the view coordinate space) to the screen coordinate space will be done for you when the view is drawn on screen.

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

Sidebar

Related Questions

I have a game in which you can score from -40 to +40 on
I have this game where balloons are coming from bottom and player has to
I have a card-game application which makes use of Single Table Inheritance. I have
I'm trying to make this 2-player web game application using Spring MVC. I have
In my cocos2d application I have run through it using instruments and removed all
I have implement game application in which i want to play mid sound file
I am implementing game application.In which i have set UIView on camara overly.When i
Currently I have a flash based application (game) which I need to put on
i have an game application.I want to set a timer from the beginning upto
I have implemented game application.In which i want to animate some area of images

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.