Offsetting the Camera

For questions about using Classic.

Post » Tue Feb 28, 2012 3:57 pm

Still very new to using Construct (most of my time is spent painting resources atm) so please excuse my simpleton questions :P

I have the camera set to focus on the player at all times (building a platformer) through the Event: Always (every tick) - System: Scroll to Object Player.

This centers the player at the very middle of the screen though, and I'd like it to be slightly offset on the Y axis so that there is more space above the player than below, like in this image of Sonic:



Any advice on how to achieve this would be greatly appreciated :)

Many thanks for your time.
B
15
S
7
G
7
Posts: 250
Reputation: 5,298

Post » Tue Feb 28, 2012 5:39 pm

Instead of scroll to object you can try scroll to position (player.x, player.y-100).
B
79
S
24
G
53
Posts: 4,728
Reputation: 40,219

Post » Tue Feb 28, 2012 6:19 pm

Thanks man, makes perfect sense!

Unfortunately I'm an artist and a writer who hated maths back at school. What amounts to basic logic to some people, amounts to a headache for me =P
B
15
S
7
G
7
Posts: 250
Reputation: 5,298


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests