Power meter

hello everyone, I’m new to unreal engine and trying to create a football penalty game. I need a power meter (don’t know what its really called in games. power bar, power gauge,…) that determine shoot speed. so for this, I know that i have to make a progress bar that goes from 0 to 100. when i press space it stops the progress bar and determine speed and shoot the ball. i can’t turn this into blueprints and i don’t know how. i tried some video for mini golf to find out how power bar works there but couldn’t find anything good. can you guys help me? or give me a reference to watch and learn. thank you.

1 Like
  • create a widget with a progress bar:

image

image

  • the script that (roughly) does what you mentioned:

Here, the whole thing sits in the Level Blueprint but it should probably be in the player controller (or in the player BP if there is one). Probably because we know too little about the gameplay atm.

The green bit would be the next thing to implement.


This can be dramatically improved, ofc - just a kickstarter.

3 Likes

Thank you. you’re an awesome. it helps me a lot. can i have some questions?
how can i give progress bar the range numbers i want? like 0% shoot the ball with 1000 impulse and 100% does it with 3000 impulse.
can i have time for progress bar? like it goes from 0 to 100 within 1.5 second. and the comes back to 0. i want it always working until i press space. i know i should do it with timeline but don’t know where should i put it.
and how can i give location and rotation from my arrow to the impulse node so the ball goes in the arrow direction?

Sure thing:

[…] give location and rotation from my arrow to the impulse node so the ball goes in the arrow direction?

You may need to elaborate on how this needs to work. I assume you want to generate a direction vector of sort. Probably something close to:

Just not sure how you want it all be glued together. As in, what’s the overall vision and gameplay like. The above is just pure example of functionality.

1 Like

this is my first project and it’s a multiplayer game. one person shoots the ball and one person is keeper trying to not let the ball go through goal. i couldn’t find anything like it made with ue5. after a lot of search i came here disappointed asking my problems. you answer and i like this community a lot. thank you very much.
so here is the mechanics of the game:
there is a ball and there is a arrow attach to it for aiming. there is a power meter that goes from 0 to 100 and came back to 0. always moving until you press shoot. the power meter has 3 parts.0 to 40% is yellow and if you shoot in yellow the ball goes very slow. 60 to 100% is red and if you shoot the ball it goes out. 40 to 60% is green and when you shoot it goes exactly where you want. i don’t know if you play fifa but its a simple version of fifa penalty.
i dont know yet how to build a multiplayer game but trying to solve these simple mechanics and little disappointed that i couldnt do it without help :frowning:
this is all of it. if you have any question im very happy to answer. again thanks for help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.