Titanic Games At 12:11 i look up get current stamina by dragging a line off character reference and the only possible options are Get Current Montage, Get Current Joint Angles (Mesh) and Get Current Acceleration. But no get current stamina. And if i untick context sensitive it does show up (in the third person character "section" and not the default one) but apparently i cant connect it to the character reference. Pls help i dunno wut to do...
@@jello788 This right here. I was using a sidescroller character so "character" didn't have a stamina variable. I knew there was something wonky with my inheritance but couldn't figure out what. Thanks man.
Mistakes to consider that happened to me: -do not forget to loop the set timer by event for both increased and decreased stamina - be sure to attribute a value to all stamina variable (ah stupid thing x) )
If I wanted to modify this to have the bar continuously deplete over time when the character is in motion, not activated by sprinting, would that be pretty straightforward? I plan to have collectibles that raise the continually dropping stamina.
I know this won't get a reply but an event begin play already exists for me (12:52) and it just takes me too that instead of making a new one, please help
At 12:00 when i compile i get "Warning 'ReturnValue' is already a 'Character', you don't need Cast To Character." And at 12:13 i can't connect "Get Max Stamina" or "Get Current Stamina".
Hey there. If I were you I'd go back and make sure you are casting to the right character (yours might be different than mine) and then make sure you promote the "As [Your Character]" of the cast to a variable. That way you should be able to access the "Get Max Stamina" and "Get Current Stamina" from your character's blueprint. If that doesn't work you could send me a screenshot of your blueprint to teamtitanicgames@gmail.com so I can get a better idea of how you're doing everything. Other things to check could be making sure you're in the right blueprint (this should be in the widget blueprint). Also, if you're making a multiplayer game, "Get Player Character" might not be working, but I haven't confirmed that yet. Let me know how it goes.
I was stuck at this point for awhile because I hadn't set it to variable correctly, good thing you've already helped that guy with it or I'd have given up on it.
My best bet is that either one of the timer's isn't working (the decreasing one most likely) or you have both a decrease and increase timer running at the same time. Everything still works even in the most recent engine versions, so just double check how you have the timers connected to events and which timer handles you are clearing. Also make sure you've set your StaminaRate to a non-zero value or it won't go down. I hope that helps.
i checked but i cant find the problem can i maybe add you on skype , because me and my friend are trying realy hard to learn everything right now and, to have someone who can maybe help me if i have a problem would be cool :D .
My problem was I didn't hooked the Clear and Invalidate to the Branch, instead I was hooked it to the Timer. You must hook only the return value to the timer. And I was not hooked the MAx stamina into " >= " for increasing. See 8:33. The tutorial works on 4.19.2. I just have to stop watch tutorials on double Speed.
yeah the hud shows but the stamina bar doesn't decrease lol also when i hit play my character starts off running and i have to hit shift in order to switch back to walk and then hold down to run, is their a way i can take that out, so automatically it starts off walking and gets rid of the other function for running at the start?
jeez finally if your character refernce wont connect to current stanima its becuase you need to drag of event construct and type cast to ThirdPersonCharcter if you havent changed the name of you charcter :)
Hi, i try to do this.Press W (walk), them add press Shift left and Run, and,,,Add C and Sprint. Of course i cantm do you have a video for this? Thanks!!! w=Wal W + Left Shift = Run W + Left Shift + C =Sprint
Hey, Jack, maybe you can guide, how to apply this with speed? For instance Pressing shift once increases speed, but after a couple seconds it slowly (gradually) decreases to normal speed.
Hi, Im doing a thirdperson character blueprint and the stamina bar doesnt move and the speed dont increase, i have checked and everything is correct. Anybody knows why its not moving? Please help.
Fixed.... i missed a one thing between increase/decrease evento to Set variable, after make that and set 100 over the current stamina and max stamina work fine, the only problem with that is after the stamina reach 0 still running....
I keep getting this error when am about to compile it help please? Binding: Property ' Fill Color and Opacity Delegate ' on Widget ' StaminaBar ': Binding: 'None' : 'None' was not found on 'Stamina Hud'.
Great system. great tutorial. Thank you! I only have one question: do you know how to create a pick-up object that would fill all stamina? Since I used your method with float variables I'm not sure... But I'm fairly new to Unreal so... I created an actor and stuff, but the event / functions worry me.... Can you help? =)
After seeing this video is 4 years old i understand now why it doesn't work for me everything is reversed for some reason? as in when i sprint my bar increases and when im not sprinting it decreases xD
Titanic Games At 12:11 i look up get current stamina by dragging a line off character reference and the only possible options are Get Current Montage, Get Current Joint Angles (Mesh) and Get Current Acceleration. But no get current stamina. And if i untick context sensitive it does show up (in the third person character "section" and not the default one) but apparently i cant connect it to the character reference. Pls help i dunno wut to do...
the step before this. make sure you cast to YOUR thirdplayer character. the character name that you play as. I had this issue and t hat fixed it
Thank You Man
@@jello788 This right here. I was using a sidescroller character so "character" didn't have a stamina variable. I knew there was something wonky with my inheritance but couldn't figure out what. Thanks man.
Mistakes to consider that happened to me:
-do not forget to loop the set timer by event for both increased and decreased stamina
- be sure to attribute a value to all stamina variable (ah stupid thing x) )
Hi i have a problem the Charakter referens and the get max stammina are not connecting
This eventually worked out for me, thank you!
(The bar wouldn't decreased though)
Me too
Me too
Hey, what can i do when i dont know how to compile the blueprint? And i cant set default value?
@12:10 cannot connect character reference to Get Current Stamina (it says that it can't connect with Third person character).. i'm stuck (
nevermind in Character Reference changed Variable type to Third Character Person and it worked )
If I wanted to modify this to have the bar continuously deplete over time when the character is in motion, not activated by sprinting, would that be pretty straightforward? I plan to have collectibles that raise the continually dropping stamina.
Works perfect! Thank you!
I know this won't get a reply but an event begin play already exists for me (12:52) and it just takes me too that instead of making a new one, please help
nvm I figured it out lol
@@LukeDaLlama How you do it man ? I have the same problem whit the event begin play
At 12:00 when i compile i get "Warning 'ReturnValue' is already a 'Character', you don't need Cast To Character." And at 12:13 i can't connect "Get Max Stamina" or "Get Current Stamina".
Hey there. If I were you I'd go back and make sure you are casting to the right character (yours might be different than mine) and then make sure you promote the "As [Your Character]" of the cast to a variable. That way you should be able to access the "Get Max Stamina" and "Get Current Stamina" from your character's blueprint. If that doesn't work you could send me a screenshot of your blueprint to teamtitanicgames@gmail.com so I can get a better idea of how you're doing everything. Other things to check could be making sure you're in the right blueprint (this should be in the widget blueprint). Also, if you're making a multiplayer game, "Get Player Character" might not be working, but I haven't confirmed that yet. Let me know how it goes.
I was stuck at this point for awhile because I hadn't set it to variable correctly, good thing you've already helped that guy with it or I'd have given up on it.
Do you not do videos anymore?
whats the reason for using a float instead of an int?
i have problem i see stamina bar on the screen but this stamina bar isn't filled by blue color
my biggest issue is that i can't seem to referance any veriables from my character period
hey , so im pretty sure that i have everything like you have but my stamina bar is not decreasing do you know what could be the problem?
My best bet is that either one of the timer's isn't working (the decreasing one most likely) or you have both a decrease and increase timer running at the same time. Everything still works even in the most recent engine versions, so just double check how you have the timers connected to events and which timer handles you are clearing. Also make sure you've set your StaminaRate to a non-zero value or it won't go down. I hope that helps.
i checked but i cant find the problem can i maybe add you on skype , because me and my friend are trying realy hard to learn everything right now and, to have someone who can maybe help me if i have a problem would be cool :D .
Great video, Thank you!
My problem was I didn't hooked the Clear and Invalidate to the Branch, instead I was hooked it to the Timer. You must hook only the return value to the timer. And I was not hooked the MAx stamina into " >= " for increasing. See 8:33. The tutorial works on 4.19.2. I just have to stop watch tutorials on double Speed.
my character animation looks like its always running, how do i choose which to trigger?
13:16 it says "ERROR"!
yeah the hud shows but the stamina bar doesn't decrease lol also when i hit play my character starts off running and i have to hit shift in order to switch back to walk and then hold down to run, is their a way i can take that out, so automatically it starts off walking and gets rid of the other function for running at the start?
Keep it up buddy im gonna follow your series , keep it up with the good work :D
Thanks man we appreciate it. And if you want to suggest a tutorial, you can add it to our Tutorial Requests sheet on our channel page.
at 12:13 theres no get current stanima for me pls help (i added the float but its not popping up for it)
Did you fix it ? I fixed it by changing Cast To MyCharacter to Cast To ThirdPersonCharacter
When you change it to ThirdPersonCharacter you also need to remake the CharacterRefrense, then it should work.
Thank you sir!
if in first person use cast to firstpersoncharacter
if thirdperson cast to thirdpersoncharacter
if flying or whatever use cast to playerpawn
Very helpful concepts! Thank you! And there wasn't too much to add in order to get this functioning for multiplayer. So thank you! Appreciate you. :)
When I run the stamina bar goes down a little bit then stops, what should i do?
jeez finally if your character refernce wont connect to current stanima its becuase you need to drag of event construct and type cast to ThirdPersonCharcter if you havent changed the name of you charcter :)
Thank you for this comment :)
thanks man. In the video, he does not explain how the engine recognises what we are trying to target :(
U are doing god's work
Hi, i try to do this.Press W (walk), them add press Shift left and Run, and,,,Add C and Sprint. Of course i cantm do you have a video for this? Thanks!!!
w=Wal
W + Left Shift = Run
W + Left Shift + C =Sprint
for me after awhile it just goes down to 0 then after i stop running it just goes all the way to the top in an instant
after i run, when i'm standing one palc my stamina still want do decrease, but it regenerate too sto the bar is stucking pls help :s
Hey, Jack, maybe you can guide, how to apply this with speed? For instance Pressing shift once increases speed, but after a couple seconds it slowly (gradually) decreases to normal speed.
My bar isn't full to begin with can u help?
Hi, Im doing a thirdperson character blueprint and the stamina bar doesnt move and the speed dont increase, i have checked and everything is correct. Anybody knows why its not moving? Please help.
I have the same problem... the stamina bar not work and all are configured like the video... Any idea?
Fixed.... i missed a one thing between increase/decrease evento to Set variable, after make that and set 100 over the current stamina and max stamina work fine, the only problem with that is after the stamina reach 0 still running....
I keep getting this error when am about to compile it help please? Binding: Property ' Fill Color and Opacity Delegate ' on Widget ' StaminaBar ': Binding: 'None' : 'None' was not found on 'Stamina Hud'.
I fixed it But now my Stamina Bar doesn't recharge after it depletes.
copied evreything bro fixed the character issue but the bar is grey not blue and it doesnt go up or down can you please help me out?
Hey ! Nice vidéo but my stamina isn't here when i lanch the game . Can you help me ?
how to make animation trigger when sprinting help please
use animation blueprint
You rock, suscribed.
at 11.35 there is not "cast to my caracter" voice pls help
Cast to "Name of your character".... "cast to myplayer"
how to fix the stamina bar issue? anyone, stamina bar goes grey . same as the others here.
Great system. great tutorial. Thank you! I only have one question: do you know how to create a pick-up object that would fill all stamina? Since I used your method with float variables I'm not sure... But I'm fairly new to Unreal so... I created an actor and stuff, but the event / functions worry me.... Can you help? =)
might be a little bit late lol but you can create an object which upon collison casts to the player and sets the current stamina to max
looks like I will need to find a new tutorial....
it doesnt increase.
Negative. For mine, it doesn’t work.
He didnt show setting the float values, thats probably why its not working for people
what did he set it to?
STASMINA
lool
After seeing this video is 4 years old i understand now why it doesn't work for me everything is reversed for some reason? as in when i sprint my bar increases and when im not sprinting it decreases xD
when i made it it worked perfect but my stamina bar goes down SUPER slow
STASMINA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Like #300