2D auto scroll background

For questions about using Classic.

Post » Mon Sep 10, 2012 5:43 am

Hello, I been trying to rap my mind around how to make a proper auto vertical scrolling background for my 2D game. I tried playing around with the "offset" settings in the "layer Effects properties". But it doesn't work. form what I gathered from other forums you need some sort of "timer" and a "private variable". I don't know... This is getting me frustrated and confused, could someone please help me make a simple auto vertical scrolling background?
B
4
Posts: 35
Reputation: 445

Post » Mon Sep 10, 2012 6:10 am

https://dl.dropbox.com/u/29072735/forcedscrollplat_test.cap

Here is an example of auto-scrolling. It's horizontal, but here's what you do.

Look in the Event Sheet "Camera", and see how the auto-scroll is set up.

Basically, you have a private variable "ScrollSpeed", and have the System scroll to Y + global(ScrollSpeed)*timedelta.

So basically switch where it says from ScrollX to ScrollY and it should work.
B
19
S
3
G
2
Posts: 148
Reputation: 1,945

Post » Tue Sep 11, 2012 12:42 am

I really appreciate this but this isn't quite what I meant. (although, I will have a feature like this in the later levels in my game so thanks many buddy!!)

Sorry, Maybe I didn't explain the issue well enough... Here's a better example

http://www.youtube.com/watch?v=BhKZXacyPTY

If you look at the clouds near the top in this video link they auto scroll in the background, even when the player stops moving. That's what I would like to know how to do in Construct Classic.

B
4
Posts: 35
Reputation: 445

Post » Fri Sep 14, 2012 2:59 am

Never mind the last post I finally figured it out. Thank you for your help!
B
4
Posts: 35
Reputation: 445

Post » Sun Dec 09, 2012 7:06 pm

[QUOTE=EmperorIng360] https://dl.dropbox.com/u/29072735/forcedscrollplat_test.cap

Here is an example of auto-scrolling. It's horizontal, but here's what you do.

Look in the Event Sheet "Camera", and see how the auto-scroll is set up.

Basically, you have a private variable "ScrollSpeed", and have the System scroll to Y + global(ScrollSpeed)*timedelta.

So basically switch where it says from ScrollX to ScrollY and it should work. [/QUOTE]

Your .cap file is not found !
I want to learn it ! :)
B
4
Posts: 10
Reputation: 470

Post » Wed Dec 19, 2012 5:23 am

WHoops. Here you go.
https://dl.dropbox.com/u/29072735/forcedscrollplat_test.cap
B
19
S
3
G
2
Posts: 148
Reputation: 1,945


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests