How do I make camera follow player

Get help using Construct 2

Post » Tue Jan 31, 2017 7:07 pm

Hi all,

Just making a portrait top down game, i'd like the player to be stuck to the bottom of the screen so as they move forward (up) the screen moves with them still at the bottom (hope that makes sense)

Hope someone can help

Thanks

Alex
B
3
Posts: 7
Reputation: 201

Post » Tue Jan 31, 2017 7:13 pm

Use an invisible helper sprite with the scroll to behavior rather than using scroll to on the player himself. Position the invisible sprite a set distance above the player (or however you would like the camera to behave) every tick.

EDIT: Or just use the scroll to x,y system action every tick instead of the behavior. Then you can use player.x, player.y+distance for your coordinates.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Tue Jan 31, 2017 7:41 pm

Excellent! thanks oosyrag :0)
B
3
Posts: 7
Reputation: 201


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky, nahima, Yahoo [Bot] and 8 guests