Constant Scrolling background (Stars / Clouds etc)

0 favourites
  • 12 posts
From the Asset Store
Change the size and position of everything without calculating anything!
  • Hi there,

    I'm wondering what is the best way of having a continuous scrolling background?

    I'm creating a Point&Click adventure game mostly based in space (although later on a planet I will need the same thing but for clouds).

    (My profile is not allowed to post links yet, so I have to write it like this):

    dhughes DOT co DOT uk FORWARDSLASH godspeed

    As you can see in the background I have managed to get a Tiled Background moving on an X axis to the right, but I am having trouble having this loop (at the moment it just leaves the screen and you can see the white behind it.)

    Ive also experimented with Parallax type of scrolling by following a tutorial I found but this made everything (the character, the ship etc) move off the screen also. The parallax look would be ideal, as I intend to add another layer of stars, with the idea to get a feeling of depth.

    Wondering if anyone had the solution or some tips? <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hey hey...

    had a comparable problem and my solution was to have giant tiled background ojects with the center far outside of the viewport rotate very slowly...

    Better would be, if the tiled Background Plugin had parameters for scrolling... I really don't understand, why it doesnt't.

    Another possibility would be to use Particles for your Stars.

  • The autorunner example shipped with construct2 shows one way of doing it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I would have it so it spawns object at random x , y and have the cloud have a sine

    Sorry I can't fully explain it or show screenshots I am on my iPod

  • The autorunner example shipped with construct2 shows one way of doing it.

    Couldn't find the example... think you meant the template.

    And yeah nice way for doing it.

    Still think the TiledBG sould have a Panning Property^^

  • Hmmm, no joy :( the Autorunner example is a brilliant one and is doing what I need it to do ... but I've copied the coding and set up exactly and its doing the same thing as it was, arggg

  • If you would be so kind to share your capx, we could see what's going on.

    If you copied it exactly, it should work.

  • Tiled background did have an offset feature with Construct Classic, but Ashley said canvas makes it nearly impossible. I second the idea of just spawning objects off-screen periodically and have those scroll/move.

    Ie, every x seconds, create object at windowwidth.x+200, 400

    And so on.

  • LittleStain

    Sure ok, I just uploaded it to:

    dhughes DOT co DOT uk FORWARDSLASH spaceship DOT capx

  • Solved

    Your background was going in the opposite direction,

    so + should become -

    and < should become >

    and because the original used the left side of the layout (which is 0) and you use the right side (in your case 340) this should be taken into account as well.

  • LittleStain

    Thanks so much!! I havent been able to test it out yet because I need to download the Beta version (159), so I'm doing that now but your explanation makes sense!! :) I'll get back to you once its downloaded :) cheers

  • LittleStain

    Thank you so much, it works perfectly! definitely SOLVED :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)