You’re super close, just one small correction about how lerp() works.
lerp(A, B, X) is:
A = current value
B = target value
X = how much to move toward B (usually a small number like 0–1)
X is not time in seconds. It’s a blend factor. So if you use 0.1, it moves 10% closer each tick.
For Layout Scale (0 → 1.5)
You don’t manually type 0 as A every time.
A should be the current layout scale.
So in Construct 3, you’d do something like this:
Every Tick
→ Set Layout Scale to:
lerp(LayoutScale, 1.5, 0.1)
Here:
LayoutScale = current value (A)
1.5 = target zoom (B)
0.1 = smoothing speed
That will smoothly zoom toward 1.5.
Important mistake to avoid
If you write:
lerp(0, 1.5, 0.1)
It won’t animate properly because it keeps starting from 0 every tick.
Cleaner setup (recommended)
Create a global variable:
targetZoom = 1
When you want to zoom in:
Set targetZoom to 1.5
Then in Every Tick:
Set Layout Scale to lerp(LayoutScale, targetZoom, 0.1)
Now you can zoom in and out smoothly by just changing targetZoom.