# How to set a max amount for stamina to grow (2d game)

**URL:** <https://forums.unrealengine.com/t/how-to-set-a-max-amount-for-stamina-to-grow-2d-game/481804>\
**Category:** Asset Creation\
**Tags:** unreal-engine, question\
**Created:** [April 15, 2021, 8:31am UTC](https://forums.unrealengine.com/t/how-to-set-a-max-amount-for-stamina-to-grow-2d-game/481804 "2021-04-15T08:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pancu422](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pancu422](https://forums.unrealengine.com/u/Pancu422)\
**Post date:** [April 15, 2021, 8:31am UTC](https://forums.unrealengine.com/t/how-to-set-a-max-amount-for-stamina-to-grow-2d-game/481804/1 "2021-04-15T08:31:47Z")

</div>

So I am working on a 2d pixelated game and I have managed to put a stamina bar in the system but whenever I release the button that I set the stamina to be consumed it just keeps on growing.
