How do I disable specific inputs on controls

Get help using Construct 2

Post » Tue Oct 24, 2017 1:56 pm

boop you replied while I was editing

and the camera is somewhat bouncy and disorienting, which is pretty fixable by slowing the camspeed down or dividing it in the lerp and increasing the distance between min and max zoom so it's more forgiving, though i'm already thinking of how I can set it to have some give room so it only zooms and pans after a certain distance is moved and then lerps to it so it remains completely unmoved in a sort of moving dead zone.
B
15
S
6
G
1
Posts: 20
Reputation: 1,352

Post » Tue Oct 24, 2017 2:00 pm

maybe a logarithmic lerp speed? I'm to sleepy gotta get some shuteye...
B
15
S
6
G
1
Posts: 20
Reputation: 1,352

Post » Tue Oct 24, 2017 2:12 pm

First line determines zoom level - from 1.4 for stationary (zoomed in), down to 1 when player's speed is equal to layoutWidth (zoom 100%).

If the player is moving even faster, zoom can become <1. I didn't want that, so I added zoom=max(zoom,1)

I don't like this zoom effect either, you should definitely play with the values or camera speed etc.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,375
Reputation: 84,377

Previous

Return to How do I....?

Who is online

Users browsing this forum: facecrime and 10 guests