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
Game development stories & opinions
You can find the plugin here.
This simple plugin provides two expressions; Map and Constrain.
Map re-maps a number from one range to another.
Constrain constrains a number to be within a range.
Isn't constrain the same as the clamp expression, or am I understanding this wrong?
Develop games in your browser. Powerful, performant & highly capable.
Yup, it's same. I forgot about it so i implemented my own solution!
You can do the map function yourself inside C2 also, it just returns //(x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min //