How can i die when my energy is 0?

100550-sieppaa.png

or can i use this method? i think i need to replace jump action and those health’s to energy if iam right