Background moves with player

Get help using Construct 2

Post » Sat Jul 28, 2012 3:33 am

Hi all.

I was going through this tutorial on platformer games http://www.scirra.com/tutorials/253/how-to-make-a-platform-game
but my problem is that the "view" box doesn't scroll with the player. For example. I can have my player jump down to another platform, but the game doesn't go with him. Same on the third platform form the "ground", it extends right beyond the border but the game won't scroll with him.

Here's a capx http://dl.dropbox.com/u/93047429/testplatformer.capx

I'm sure I'm missing something especially obvious, but this has been driving me crazy!

Thanks!
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Sat Jul 28, 2012 5:26 am

I have answered my own question, and I'll post it here so that future people with this problem have the solution too!

I needed to add a "scroll to" behaviour to the invisible box that in pinned to the player (not to the tiled bg object!). Now the BG scrolls along with the player :D
B
16
S
3
G
3
Posts: 66
Reputation: 3,629

Post » Sat Jul 28, 2012 6:54 am

Thanks!
B
14
Posts: 20
Reputation: 945


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests