Moving Backgrounds

New releases and general discussions.

Post » Tue Mar 15, 2011 11:06 pm

Hey. I'm new(ish) at Construct, and am trying to make a basic platforming game. I would like to add a moving background. In this case, it's wreckage floating in space.

Because I don't know that much about custom animation, I attempted to use 8-directional movement. But I would like it to stay at the same speed throughout the level, and run on it's own. Additionally, I don't think creating an artificial loop like I did is the most efficient way to make something so simple.

This seems to be common knowledge, but I can't find it posted anywhere. The .cap is here:
http://www.megaupload.com/?d=NSJALGBF
Thanks.
B
2
G
1
Posts: 5
Reputation: 460

Post » Tue Mar 15, 2011 11:59 pm

[url:217sfl0l]http://en.wikipedia.org/wiki/Parallax_scrolling[/url:217sfl0l] :?:
Done via layers
[url:217sfl0l]http://sourceforge.net/apps/mediawiki/construct/index.php?title=Layers[/url:217sfl0l]
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Wed Mar 16, 2011 12:44 am

This is all part of the fun of making games. Figuring out how to fake something.

The effect is called parallax scrolling. However if your making some sort of vertical/horizontal shooter where you don't want the frame to scroll, you can try the offset feature within tilebackground objects.

http://dl.dropbox.com/u/1487524/Scirra/ ... dangle.cap

Here is an example that Deadeye made a thousand years ago, however his link had gone dead so I added it to my dropbox.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Wed Mar 16, 2011 9:22 am

For infinitive scrolling with TilledBg or layer offset effect I just use "offset: timer/x" instead of variables.
x is speed rate.
Timer is system expression
B
2
S
2
G
2
Posts: 158
Reputation: 1,366

Post » Wed Mar 16, 2011 9:37 am

[quote:2glyr12x]Here is an example that Deadeye made a thousand years ago,[/quote:2glyr12x]

lmao certainly feels like a thousand years ago :lol:
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests