Camera following player using LERP problem

Get help using Construct 2

Post » Sun Nov 29, 2015 10:06 pm

Message: Solomon can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi I have been trying for the past 30 minutes to work this tutorial into my game but it just doesnt seem to want to work right.

Tutorial:
https://www.scirra.com/tutorials/626/ma ... ing-camera

With unbounded scrolling turned on it works fine, but I want it to be bounded and scroll to the player once he moves around the scene and be bound by the scene boundary. This only works in the Y axis and not in the X axis and I dont know why...

Also the camera is snapping once it reaches the boundary in Y and I would like it to ease in using the LERP function.

Any help would be appreciated.
Brick by brick, stone by stone.
B
52
S
24
G
17
Posts: 273
Reputation: 12,663

Post » Sun Nov 29, 2015 10:11 pm

Hmm, now Im thinking that it would be best to set some sort of a sensor at the edges of the map, so that the camera does not pass this sensor, while still retaining the unbounded scrolling turned on.
Brick by brick, stone by stone.
B
52
S
24
G
17
Posts: 273
Reputation: 12,663


Return to How do I....?

Who is online

Users browsing this forum: Neiroe and 9 guests