# Status bar going down and adding energy

**URL:** <https://forum.makecode.com/t/status-bar-going-down-and-adding-energy/30296>\
**Category:** Arcade\
**Created:** [August 25, 2024, 2:49am UTC](https://forum.makecode.com/t/status-bar-going-down-and-adding-energy/30296 "2024-08-25T02:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helpmeplease](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@helpmeplease](https://forum.makecode.com/u/helpmeplease)\
**Post date:** [August 25, 2024, 2:49am UTC](https://forum.makecode.com/t/status-bar-going-down-and-adding-energy/30296/1 "2024-08-25T02:49:34Z")

</div>

Hi,  
I am making a game in python and I have a status bar and I need help with the bar going down. My sprite is a bird and when the bird is running I want it to gradually loose energy, and when the enemy catches it I want it to die. However I also want to place seeds in the area and when the bird touches / eats one of the seeds I want it to get an energy boost. There are images of my code below.

I am not very good at python so please help.  
Thanks 😊

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/1/71be224b5a2117478fd2c74e67ee1bac6401c102.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/2/12b34a9c4b72f361769549a545e610fdbd320398.png)  
These are images of my code
