Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Having a brain fart on how to set up a vertical slider control for scrolling y over two layers, where slider.y max=windowheight, or layer 1 height, and scrolly max= layoutheight, or layer 0 height.
Im trying set scrolly to lerp(0,layoutheight,... and the rest escapes me atm.
A = difference between slider starting y and ending y
B = slider initial position
C = slider maximum value you want
lerp(0, layoutheight, ((slider.y - B) / A) * C)
I think this is it
EDIT: actually, I think you don't even need the lerp() there
Develop games in your browser. Powerful, performant & highly capable.
Thanks, I think I figured it out.