I am trying to make a minigolf game currently (starting using the rolling demo) and having some issues with HUD. I UMG hud
I am trying to make a power bar that uses progress bar. It is supposed to on space bar press start filling up to 100 then take that value (do some multiplication to make it a larger) and apply it as an impulse to the x vector. I have the basic set up for a umg hud which I will show images of. I want to make the progress bar fill at a set rate when the spacebar is pushed and the when spacebar is pushed again it should stop filling and take that fill amount and set it to a variable.
Okay I think I understand what you mean. However, currently we are not using a model to hit the ball. We are only using ue4 add impulse to the x direction.
I also do not understand how to do the model has the value.
So you have a player and they push the button to wind up the swing. In the Player blueprint you have a Variable float that is the windup. Each tick if the key is held down you add some amount (per second) multiplied by the delta time.
Then each tick you set the progress bar.
When they release the key you have the wind up amount and use that to hit the ball.
Sorry for the delay and thank you so much for your help. I have been able to achieve control of the ball by holding down the E key and it applies an impulse; however, this does not show up on my Progress Bar as filling or showing the amount as intended. Can you tell me where I am going wrong with the UMG HUD. Thank you.
Yeah I will change that however, the way the code is written right now it only is showing up hud now only after the e button is released how do I get it to show the progress bar raising?