How do I make a scrolling background

Get help using Construct 2

Post » Mon Jun 29, 2015 7:28 pm

I'm starting a new 2d platformer project, and before I do that, I want to make it so when the character progresses it scrolls through the map to keep him in the middle of the screen.
B
3
Posts: 9
Reputation: 199

Post » Mon Jun 29, 2015 7:34 pm

The quick and dirty way is to add the Scroll To behavior to your character.

As you get more into things, you should set the game to scroll to an invisible 'camera' object (just a blank sprite) and then you can customize how the camera reacts and moves.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Mon Jun 29, 2015 9:36 pm

You can create a new layer with Paradax maybe...
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Mon Jun 29, 2015 10:16 pm

There are multiple ways of doing this, id say it depends on what you are specifically after and how the rest of your game works.
Here's another way: open C2, click start a new project, scroll down and choose Template: Auto-runner. See if you like how it's done there.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Mon Jun 29, 2015 10:24 pm

I have a huge map horizontally, I want the player to be able to go beyond just the normal limits: example: Image I need the camera to scroll throughout the entire world, wherever the player goes.
B
3
Posts: 9
Reputation: 199

Post » Mon Jun 29, 2015 11:18 pm

Then make a different sprite(doesn't matter what, can just be a box of any color) put it on top of the player and pin it to the player. Then add the camera effect to that box.
I think the "How to make a platformer game" tutorial covered that, so check it out.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests