How can I make a platform screen scroll horizontal

Get help using Construct 2

Post » Sat Sep 21, 2013 7:14 pm

I'm creating a platform game, in ehich I would like my player to remain exactly in the same spot throughout the game, and have only the background and objects move.

The problem is that if the player doesn't jump fast enough over an object, the object continues scrolling and the player is dragged backwards.
I want the horizontal scroll to stop the moment that the player collides with an object.

I would also like for the screen to move vertically when the player jumps and lands....

Any help please?vivsa2013-09-21 19:17:29
B
5
Posts: 17
Reputation: 292

Post » Sat Sep 21, 2013 8:04 pm

use parallax option for your background layer
B
38
S
13
G
4
Posts: 152
Reputation: 5,147

Post » Sun Sep 22, 2013 12:14 am

Are you making a platform game like Super Mario Bros, or an infinite runner type game?
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,727

Post » Sun Sep 22, 2013 3:40 am

To make the layout move up/down when the player jumps I would do it by adding the Scroll To behavior on the player sprite. That way, since all your guy will do is jump, the camera will always keep him centered.Pancholo2013-09-22 03:41:19
B
13
S
5
G
1
Posts: 34
Reputation: 2,022


Return to How do I....?

Who is online

Users browsing this forum: farflamex, NN81 and 42 guests