How do I Set Camera to Offset

Get help using Construct 2

Post » Mon Sep 22, 2014 10:12 pm

Right now the camera and player are centered in the window. I would like to have the camera and player just off centered, so there is about 2/3 of the window in front of them.

I have seen some sidescroller games (paper monsters) do this and when the player moves to the right the camera shows 2/3 of the window to the right consistently.

i.e: if the screen is numbered 0 -100 to the right, the player stays at around 35.
Is this possible with C2? The posts and I have come across don't mention this sort of camera movement.

Thanks for any help.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Mon Sep 22, 2014 10:39 pm

I am using this setup to achieve similar results. This has the added benefit that you can use conditions and change the camera's position to somewhere else than normal, if for instance you want to point out a part of the layout to the user.

The scrolling is happening automatically by the 2 scroll to behaviors that exist on the Player and the camera sprites. Of course, you want the camera to be invisible in the game, I've left it visible for illustration purposes.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
68
S
26
G
4
Posts: 1,146
Reputation: 9,649


Return to How do I....?

Who is online

Users browsing this forum: mikehive, plinkie and 8 guests