how do i make my character lose energy when they jump?
so ive attempted to make a basic player status system with a health, energy, and mood bar. when my player jumps i want them to lose some energy. i have attached an image of the setup i have for my jump action. i have the health bar set up and it should all be working but i'm not sure where i'm going wrong. if you need to see any other parts of my work please ask. thank you!
asked Jun 22 '15 at 11:42 AM in Blueprint Scripting
your progress bar in umg needs to look something like attached.
your question title isn't correct. You want help making the progress bar deplete, you're stating you already have the variable depleting when you jump right? these are two separate things, it won't deplete the progress bar even if set up correctly unless its depleting properly in your characterBP to start with so make sure when you jump in general that the value is actually depleting as per your characterBP. Also progress bars need to be set in percentages, hence the X 0.01 (100% of 100) (divide 1 by the max energy number to get the percentage right)
I attached an example, but if you don't understand the basics of casting, you need to take a step back and walk through some beginner tutorials. Its not important that you get the copy and paste code you need right NOW. It's important to understand what it does and why, so you can build your own stuff.
answered Jun 25 '15 at 04:15 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here