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
I'm new to Construct 2. Currently I'm working on a game where you play as a plane and shoot down other planes. It's very simple, obviously. I've added functioning health pick ups to my game. However, I don't want your health value to ever exceed 100. How do I set it so that no matter how much is added to your health, it never exceeds a set maximum value of 100?
Develop games in your browser. Powerful, performant & highly capable.
add an event: health > 100: set health = 100
Thanks so much! I'm not sure why I didn't think of this myself.
Or, if you want to save on events, use min() in your calculation.
player picked up health -> set health to min(health + whatevervalue, 100)