If you want a constant rate you need to set constant values to the range and increment the ratio every tick. So you need to do something like:
>set width to lerp(0,600,variable)
>set variable to clamp( variable + dt / duration ,0,1)
Being 'duration' the desired time in seconds to go from 0 to 600. Which means that if duration=2 the width of the object will go from 0 to 600 in 2 seconds.
The clamp expression is used to ensure that the variable value will always stay between 0 and 1, otherwise the width of the object would increase forever.[/QUOTE]
I have been studying in the manual and forum posts about the lerp function. I understand it much better now and want to thank those that have helped the new Construct 2 learners like me. I now can use lerp function effectively in my project. Yet, I was wanting to make my movements and scaling actions work at a constant rate and found the very helpful post by Animmaniac regarding this issue.
I applied the clamp( variable + dt / duration ,0,1) function to accomplish this task, but it did not cause the animation 2 seconds to complete as stated. I tested several options and found that the divided by operator "/" in the formula
"clamp( variable + dt / duration ,0,1)"
did not cause the scaling over 2 seconds as stated.
However, when I changed it to exponential "^" operator
"clamp( variable + dt ^ duration ,0,1)"
and it worked correctly. I am not sure why it works and the original "/" does not, but now my lerp move and scale actions now work at a constant rate. I hope my post does not confuse anyone if I am wrong in my approach to getting this to work the way I need it to.