Use arrow keys to scroll the viewport

Get help using Construct 2

Post » Fri Mar 15, 2013 11:25 pm

I have 2 current layers on a background @ 320 x 960 and a another layer that sits on top of it with the game objects. I have a view port of 320 x 480. What I want to do is scroll from the top to the bottom with the keyboard or mouse wheel. How can I do this?
B
2
Posts: 3
Reputation: 406

Post » Sat Mar 16, 2013 2:11 am

maybe create an invisible sprite, give it the scrollto behavior and then have it move based on the arrows or wheel?

I advise reading the manual and then the tutorials as they will answer 99% of your starting questions
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Sat Mar 16, 2013 2:56 am

@dtoebe - Is the bottom layer stationary then? Or is it scrolling at a smaller rate than the top layer?
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
113
S
20
G
8
Posts: 741
Reputation: 13,661

Post » Sat Mar 16, 2013 5:54 am

Yes the background is stationary. I did build it out to have the invisible sprite, but I was hoping to find a more efficient way of doing it
B
2
Posts: 3
Reputation: 406


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests