Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
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.
Develop games in your browser. Powerful, performant & highly capable.
Isn't constrain the same as the clamp expression, or am I understanding this wrong?
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 //