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?
add an event: health > 100: set health = 100
Develop games in your browser. Powerful, performant & highly capable.
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)