Both lerp and CanvasToLayerY can be found here:
https://www.scirra.com/manual/126/system-expressions
[quote:3kvp8g7r]CanvasToLayerY(layer)
Calculate the layout co-ordinates underneath a position in canvas co-ordinates for a given layer.
and
[quote:3kvp8g7r]lerp(a, b, x) Linear interpolation of a to b by x. Calculates a + x * (b - a)
So lerp will move from a to b by x.
For a we want the Y position on the layout of where the camera is centered. This is our starting point. So for that I used CanvasToCenterY(Layer#, X, Y). I didn't see the requirements inside the parenthesis in the manual, but that is what is needed.
For b of the lerp expression I use the Y value of the sprite.
And for x I use 0.05.
My brain is hurting again just thinking about this... <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">