Simple way to create a health bar and using the object height or width properties to grow and shrink the…