Full time scrolling [SOLVED]

For questions about using Classic.

Post » Thu May 26, 2011 2:29 am

Hey thanks for your help so far guys, I'm almost at a point of havind something done :)

One last thing I just can't get my head around, and I've been looking at others examples..

Say I'm making like a space shooter, and the player can only move left and right.. How would I go about making a sprite or similar permanantly scroll up the left and right hand sides of the screen.. For example, if you were in a ravine, the the cliff faces were rolling up on the left and right hand sides automatically, so to give the impression you were flying in the middle of a canyon..

I've looked at other tutorials which show the screen scrolling as the player moves, but quite figue how to make it move on its own while the player is acutally stationary (although it wouldnt look that way when playing)...

Cheers!
Damo
B
1
G
1
Posts: 5
Reputation: 435

Post » Thu May 26, 2011 4:22 am

Hows this? http://dl.dropbox.com/u/6660860/scrolling.cap

The tiled background has the wrap behavior to allow it to automatically move itself back to the top when it leaves the layout.
B
1
G
1
Posts: 1
Reputation: 427

Post » Thu May 26, 2011 11:32 am

[url:1yrj6b3g]http://www.scirra.com/forum/viewtopic.php?f=8&t=8538&start=50[/url:1yrj6b3g]

You can go and have a look at some of my tutorials.I have scrolling background tutorials there Which uses sprites instead of tiled backgrounds which means that you can also animate the scrolling background.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Thu May 26, 2011 8:47 pm

[quote="Citnarf26":ipbn4940]The tiled background has the wrap behavior to allow it to automatically move itself back to the top when it leaves the layout.[/quote:ipbn4940]

More importantly you can simply set the image offset with a tiled background, so you don't actually move the object but constantly offset its texture to give the impression of movement
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Thu May 26, 2011 10:59 pm

Awesome guys, thank you!! Did the trick nicely :)

Cheers,
Damo
B
1
G
1
Posts: 5
Reputation: 435


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests