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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:17:12+00:00 2026-05-30T10:17:12+00:00

ok so im trying to find some tutorials on how to create a moving

  • 0

ok so im trying to find some tutorials on how to create a moving background for a box2d game. it my first time doing it, and i dont know what they are called? can anyone tell me what they are called so i can search for some tutorials on it..

heres what im trying to do.. firstly my game is in portrait mode, and i have created an image which is 960×320 and i want it to continually run as the background of the game…. like a road which goes on forever..

can someone tell me what i can search on google to find a good tutorial for accomplish this? thankyou

  • 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-30T10:17:14+00:00Added an answer on May 30, 2026 at 10:17 am

    You can get the tutorial of the CCParallaxScrollNode by which you can do the endless scrolling of the Background. I dont know the exact link but you need to download the 4 files they are

    1. CCParallaxScrollNode.h
    2. CCParallaxScrollNode.mm
    3. CCParallaxScrollOffset.h
    4. CCParallaxScrollOffset.mm

    Now in your test demo implement the below code

    in your .h file code is

        CCParallaxScrollNode *parlax;
        CCParallaxNode* paraNode;
    

    in .mm file you need to declare before @implementation set

    float myVelocity = -4;
    

    the below code in init method

    CCSprite *clouds1 = [CCSprite spriteWithFile:@"Default.png"];
    CCSprite *clouds2 = [CCSprite spriteWithFile:@"Default.png"];
    parlax= [CCParallaxScrollNode node];
    [parlax addInfiniteScrollYWithZ:0 Ratio:ccp(0.5,0.5) Pos:ccp(0,0) Objects:clouds1,clouds2,nil];
    
    [self addChild:parlax z:-1];
    [self scheduleUpdate];
    
    -(void) update : (ccTime) dt
    {
        [parlax updateWithVelocity:ccp(0,myVelocity) AndDelta:dt];
    }
    

    The sprites can be replaced with your own sprites also you can do some modification for the Landscape also. The code is for the portrait mode

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

Sidebar

Related Questions

I am trying to find some good tutorials that would show me to create
I'm trying to find some references in regards to x86 Assembly languages. Tutorials/Examples to
I've spent some time trying to find a way CodeRush could add using when
I am trying to find some good introductory short tutorials that show how to
I've been trying to find some tutorials on writing hook scripts, and so far
I'm trying to create a memory game. I've looked at the Android tutorials for
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
Am trying to find some text only if it contains english letters and numbers
I'm trying to find some info on the best and most common RESTful url
I have been trying to find some resource on this topic for a while

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.