Constant Scrolling background (Stars / Clouds etc)

Get help using Construct 2

Post » Wed Jan 29, 2014 10:36 am

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? RetroYak2014-01-29 10:36:36
B
3
S
1
Posts: 10
Reputation: 393

Post » Wed Jan 29, 2014 11:26 am

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.
B
7
S
2
G
2
Posts: 31
Reputation: 1,328

Post » Wed Jan 29, 2014 11:29 am

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

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jan 29, 2014 11:34 am

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 ZS172014-01-29 11:35:03
B
14
S
1
G
1
Posts: 35
Reputation: 1,090

Post » Wed Jan 29, 2014 11:47 am

[QUOTE=LittleStain] The autorunner example shipped with construct2 shows one way of doing it.

[/QUOTE]

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^^
B
7
S
2
G
2
Posts: 31
Reputation: 1,328

Post » Wed Jan 29, 2014 2:23 pm

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
B
3
S
1
Posts: 10
Reputation: 393

Post » Wed Jan 29, 2014 3:02 pm

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jan 29, 2014 3:24 pm

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.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Wed Jan 29, 2014 4:17 pm

@LittleStain

Sure ok, I just uploaded it to:

dhughes DOT co DOT uk FORWARDSLASH spaceship DOT capx
B
3
S
1
Posts: 10
Reputation: 393

Post » Wed Jan 29, 2014 4:41 pm

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: RIDETHEPIG and 9 guests