How do I modify the speed of the camera?

Get help using Construct 2

Post » Mon Oct 13, 2014 1:55 am

Hi everyone!

I need the camera follow the cursor, but i have a problem with that, because when i move the mouse, the "scroll to" is too fast, and i don't know if is there is a way to modify the speed of the camera move.

I don't know if would possible, but thanks a lot for your help.
B
10
S
2
Posts: 3
Reputation: 766

Post » Mon Oct 13, 2014 2:52 am

try scrollto: X: lerp(scrollx, mouse.X, 0.3*dt) Y: lerp(scrolly, mouse.Y, 0.3*dt)
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Mon Oct 13, 2014 6:46 pm

spacedoubt wrote:try scrollto: X: lerp(scrollx, mouse.X, 0.3*dt) Y: lerp(scrolly, mouse.Y, 0.3*dt)

you are awesome, man! thanks a lot!! you really saved my life ;)
B
10
S
2
Posts: 3
Reputation: 766


Return to How do I....?

Who is online

Users browsing this forum: marcinkowski, Yahoo [Bot], zenox98 and 25 guests