Perfect guide you are a legend. I followed other guides that were so complex and they didn't even work. Your is simple and perfect
@chipkoАй бұрын
Not only have you helped massively with this tutorial, I've learned a couple of shortcut keys too - double bonus. Excellent guide
@AvB.832 жыл бұрын
Thank you very much! Before this day I had never added a new movement to UE, a widget, or anything like a stamina system... three hours later, I can walk, jog or sprint, the later draining the stamina at different speeds. Very easy to understand & straight forward.
@AlexStraub-w6w4 ай бұрын
What is that blue nide at 11:00
@MustisBeats4 ай бұрын
@@AlexStraub-w6w what blue node mate?
@RedCat_Noodle6 ай бұрын
I know this an older video but it still holds up and I could follow it even as a beginner! Thank you so much.
@stathiszoulakis9599 Жыл бұрын
thank you so much , i always watch your video once and copy everything you do to get it working and then i view the video again and i focus to understand what and why you do in the video.started learning unreal engine again , i totaly understand how the stamina works now
@Skyrim9736 ай бұрын
Very nice. You can set W key in inputs, for run, The player does not need to press any button, just stop for a while to rest.. And it will stop run and star walking at the end. You could multiply your stamina by 10 by eating food or sleeping, for a certain time..
@stoneageprogrammer4322 жыл бұрын
Hey, I want to say THANK YOU FOR MAKING THIS TUTORIAL! I followed it, I added sprint to my player character in my game, and it works perfectly. You go a little fast in the tutorial, but that's okay, it teaches me to listen. I'm gonna watch a lot more of your tutorials, you are great, and please keep making UE5 tutorials for beginners like me. Thank you again.
@HaydenHancock0 Жыл бұрын
Great tutorial! There are a couple of issues that I found. - Stamina will decrease if you press the sprint key (even if not moving) - When tapping the sprint key, the stamina progress bar doesn't get to 100
@sycho_zer0edits45110 ай бұрын
how to fix it?
@GangsterFrankensteinComputer9 ай бұрын
@@sycho_zer0edits451 add a branch before draining stamina to detect velocity on x and y axis.
@larsbrockob8 ай бұрын
@@sycho_zer0edits451 Add a branch right after your Drain Stamina Custom Event in the Player Character. To set the condition get ´Get Velocity´ (Target is ´self´) Out of the ´Get Velocity´ return value get a "Vector Lenght". Then Out of the Vector Lenght Return Value get a ´Greater´Operator and set the second value to ´0´. That creates a Boolean Condition (Red Output) that must be connected to the Branch Condition you created in Step 01 of my description. Connect the ´True´ of that branch to your existing code (Must be the Execution Path of Set Stamina, i think.). No go to the end of your Drain Stamina Code and Copy the Delay and the Drain Stamina Call that you´ve placed after the "Is Sprinting=true" Branch. Paste this to the beginning of the code and connect it to the False Output of your "GetVelocity-VectorLenght-Greater´0´ Branch that you´ve created in Step 01. Out of that Drain Stamina get another branch (I call it "Branch X" here for an easier understanding). Now Copy and paste the Get Velocity&Vector Length you just created and add a "Less" Operator to the Return Value of Vecor Lenght. Set the Second Value to 0.1. Drag out of the Boolean Condition (Red Dot) and connect it to the Condition of "Branch X". That will Gain your Stamina, even if you still press the Sprint Button after you stopped moving in Sprint. I hope it´s easy to understand?!?! Otherwise feel free to ask.
@thehobbist55447 ай бұрын
Did you ever find a fix?
@GangsterFrankensteinComputer7 ай бұрын
I'm pretty certain I replied with a fix. Definitely replied as I got a notification, no clue why my comment was deleted. Anyway, you can fix the stamina drain while not moving, by adding a True/False for player velocity in order to perform the Sprint.
@karumaaseldename99134 ай бұрын
I've gotten so far on most of his other videos but this one stumps me, and I seem to be having an opposite problem to most commenters. I can sprint, but my stamina doesn't drain. I never stop sprinting (unless I decide to.) It's like the stamina feature doesn't exist. But I've got the widget for Stamina, and it's full...
@flowercrowned355011 ай бұрын
I had the same issue that a lot of others had with the stamina depleting even when you stopped sprinting and I found the issue (at least mine). I went into the "Stop Sprinting" function and unchecked the "Is Sprinting?" checkbox, because if the character is NOT sprinting, we should regenerate the stamina. At 3:55 he unticks the box. I completely missed that as I was following along lol
@HunterMJenkins6 ай бұрын
holy shit you are right lol I did all the things everyone else did in the other comments but you should be at the top this is the solution to the problem we're all facing, thank you man
@Lendu_10 ай бұрын
for those who have the bug of the regen and drain at the same time, change the trigerred to started in the input action
@luisnache968810 ай бұрын
Hey man, sorry to bother you, but, i did the dash movement and i don't know how to connect it with the stamina, could you help me out please?
@Lendu_10 ай бұрын
@@luisnache9688 you have to create a function referenced by the sprint input action that make the reference of a custom event
@luisnache968810 ай бұрын
@@Lendu_ this is so complicate, i don't wanna bother anyone, but how do i do that?, i sorry!, it's my second day on this and most videos aren't focused on this type of answers
@Lendu_10 ай бұрын
@@luisnache9688 i don't know what is so complicate for you
@MCgrant360 Жыл бұрын
I have been suck on this for a long time, Due to an "infinite" loop. When i found this video, i was excited to find out what i was doing wrong. Thanks for another great tutorial, Matt!
@KTW_Monterrattian Жыл бұрын
How did you fix your infinite loop error
@KTW_Monterrattian Жыл бұрын
Cause I’m having a similar issue
@MCgrant360 Жыл бұрын
It was back when I was trying to figure it out my self. I don't know why the code on the video should cause an error. Maybe check over your code once more.
@cosmicgub10148 ай бұрын
@@KTW_Monterrattian in character blueprint delete the "STAMINA REGEN" node and keep it only in stop sprinting function
@offirbaruch7895 Жыл бұрын
Matt. Excellent guide. Just one remark. I would really recommend you to use Event dispatchers in the drain/regen events instead of binding functions in the widget. Dispatchers event will only call upon change of stamina and will not perform the check every frame like your guide mentioned.
@xssplater1 Жыл бұрын
Thank you!👍
@FarmerJoe-fs4nv7 ай бұрын
Hey bro, may I ask how this can be done and what this improves upon? (Performance, Accuracy, Etc.)
@leonardolippi65415 ай бұрын
@@FarmerJoe-fs4nv did you find an answer?
@leonardolippi65415 ай бұрын
whats the difference and do you actually do it?
@FarmerJoe-fs4nv5 ай бұрын
@@leonardolippi6541 لقد أزعجني هذا القرف بشدة لدرجة أنني أتحدث العربية الآن
@wesss93532 жыл бұрын
sound effect for when sprinting? foot and breathing How about a level up system like fallout when you can increase the amount of stamina after a character upgrade. General character upgrade tutorial will be great
@Urzart2 жыл бұрын
Idk if you still need the breathing, but here it goes: In the drain stamina -> connect the stop sprinting function to -> "Spawn sound at location" node -> connect location to -> "GetActorLocation" node. That's for a heavy breathing after running
@wesss93532 жыл бұрын
@@Urzart thank you for the assistance
@LungaProMecha6 ай бұрын
This is a great and clear tutorial, really helped clean up my stamina system. Thanks
@hank3652Ай бұрын
If it regens stamina while standing still and pressing shift, you should add two Branches from "InputAction Sprint" 1st one off of "Pressed": in this one you should have "Get Velocity", its return value should be "Not Equal Exactly (Vector)" and this should connect to "Condition" on the Branch, of "True" node on the said Branch add "Start Sprinting" function (or whatever you called it) 2nd one off of "Released": in this one you should have "IsSprinting?" as a "Condition", from "True" node of this Branch add "Stop Sprinting" (or whatever you called it)
@Noob_Chaos Жыл бұрын
one note: By writing the code and just run the game to check if it really works but visible to the viewer. There should be checks. Otherwise great tutorial thanks!
@ickebong58902 жыл бұрын
to get rid of the losing stamina while pressing shift and not moving do this Where you set inputAction Sprint Pressed/released create (get velocity) then connect it to a !== and connect that to a branch (b + left click). Delete the connection between Pressed and start sprinting and instead connect it to the branch you just created. Connect the true value of the branch to the start sprinting, now its fixed :D
@brady96212 жыл бұрын
Still didnt work
@SpYnツ2 жыл бұрын
its working but when i stop pressing the button to move forward its continues to take energy away from me...
@vasi3005 Жыл бұрын
@@SpYnツ Just connect the "Released" to another Stop Sprinting node. It wont fix everything but that is something that solves a lot :)
@MidnightTheFolf Жыл бұрын
This helped me a lot, but I had another problem after, while holding forward and sprint, then letting go of forward, your stamina would still decrease. An easy fix is to connect all the nodes attached to the Branch to the Drain Stamina custom event, and connect True from the Branch to the Set Stamina. (EDIT. I also put the nodes on the Event Tick, with an == Vector and connected True to the Regen Stamina. Also you can call Stop Sprinting after you call Regen Stamina, make a Branch and check for if move input is ignored with "Is Move Input Ignored", then copy Stop Sprinting and Regen Stamina to the end and connect True. This fixed the problem where if you hold forward and sprint, then let go of forward to come to a stop and hold it again, I'd still be at sprint speed, but no stamina would be used.)
@bsg8761 Жыл бұрын
Sorry I'm late. If you guys want it the way I did where press+no movement =shows no draining bar. Holding shift+no movement =showing bar then + movement= adding drain, and moving+holding shift=show bar and drain. Do exactly as this comment says. On pressed set the display widget first - connect it to this branch created like above first. On fail run the sprint code. On true run a short delay even default, then connect the delay to the start of the branch.
@obijohn12 жыл бұрын
thanks so much for your work. As a noob this way of learning is fantastic
@MrTreeGuy2 жыл бұрын
Hey matt! I was wondering if you could make a tutorial on how to save variables such as booleans intergers etc. even when u quit the game those variables are still saved. Thanks for reading!
@Medricito2 жыл бұрын
Hi! This Was A Amazing Tutorial, I Wanted To Implement One More Function With The Stamina Bar, When The Character Stop Sprinting, I Want It To Wait For A Few Seconds Before Starting To Fill The Stamina Bar Again, Thank You So Much!
@robin_d_goat2 жыл бұрын
can you add a delay before the command?
@coincape4332 жыл бұрын
on stop sprinting just do a custom event instead of regen I it called regen delay then put the delay part and then the regen part.
@SpasticLlama Жыл бұрын
@@coincape433 I know this is months old but I didn't see anyone give you a response to this and I wanted to say thank you because this was driving me crazy
@Castroo Жыл бұрын
Thanks bro, I recommend people to make other things by what you learned from this video like making character slow walk by pressing alt and so on, will help in remembering it later.
@Tobal_3 Жыл бұрын
oh man thank you for this amazing tutorial, really easy to follow and worked at the first try :D
@NaderM7MMD2 жыл бұрын
Matt I really appricate your effort of making those tutorials you are one of a kind. do you have petreon or anything so we can support you for the good work ? again Thanks a lot !!
@MattAspland2 жыл бұрын
Thanks for your support mate, super happy I could help! :) I do indeed have a Patreon yes, thanks again! www.patreon.com/MattAspland
@phantomslayer97142 жыл бұрын
Hi, thanks for your videos , I started learning unreal yesterday. So far all your content helped me so much in learning . Thank you so much ! Keep up the great content . An idea for something new 😅. Maybe make a video showing how to make stamina decrease when swing a weapon
@scarpheel2 жыл бұрын
You are truly my saviour
@thelostangel45 Жыл бұрын
Well, thats two for the night, thanks again!
@nislaav67122 жыл бұрын
All worked perfectly, thanks a ton!
@Intense_Complex15 ай бұрын
Brilliant Video, Though I had to adapt it to my own code works amazingly!
@NaderM7MMD2 жыл бұрын
Hey Matt could you tell me how can I make delay for one second to regen stamina ?
@thegeeeeeeeeee2 жыл бұрын
Great tutorial! Works like a charm
@ErodonTV Жыл бұрын
Great video thanks!! Is there a way to just increase speed by increments on button press or do we need Cpp for that ?
@playbyan1453 Жыл бұрын
Good tutorial, also beginner friendly too
@simondelguste Жыл бұрын
Hello ! Great video, as always ! I was just wondering : is there a simple way to make the stamina bar showing only when we press the sprint button ? Thank you so much for your answer !
@magegames6202 Жыл бұрын
make a widget for just the stamina bar on the on pressed for sprint create that widget add to viewport on the released event add a remove from parent node and plug in the blue line from the created widget then when you run it appears and when you stop it vanishes you can add a delay before the remove widget so players can see it start regening before vanishing
@simondelguste Жыл бұрын
@@magegames6202 Thank you so much for this tip ! Will try it asap !! 🙏🙏🙏
@magegames6202 Жыл бұрын
If you get confused let me know and I'll post a video showing you how I did mine I have it working how you're talking about doing it
@DavidGWilliams19812 жыл бұрын
Works perfectly, thanks.
@TwinGeminiStudio11 ай бұрын
Wow. Amazing. Thank you.
@raccoon_052 жыл бұрын
Great tutorial. Got a nice stamina system in my game thanks to you!
@oliverbrown96342 жыл бұрын
at 2:11, for some reason, rather than having when key pressed and when key released i have unnamed and axis value, which is a float output. how do I fix this?
@TheRealLM_FN Жыл бұрын
the input you created is an axis input, should be an action input
@Don_Beto_ptr2 жыл бұрын
I love your videos. I wish if you can do a tutorial of lock-on to an enemy
@OmegaOutlaw20247 ай бұрын
Well that was perfect. Thanks! got a sub!
@identitea_2 жыл бұрын
Helped me so much!! Thanks a bunch.
@theetashopunkster338 Жыл бұрын
what an awesome vid, thanks bro!
@MattAspland Жыл бұрын
My pleasure!
@agus11125 Жыл бұрын
good video, I used float values for the stamina properties
@MattAspland Жыл бұрын
Good stuff!
@yberkiwi73472 жыл бұрын
there''s one issue, u drain stamina when u press shift, even if u're not moving
@ajfraser2242 жыл бұрын
I guess there is probably some kind of IF statement you could use for this, like disable left shift if the character is not moving
@chikinfinguh2 жыл бұрын
make your axis mappings for forward/backward/left/right into a 2d vector length and check if it is == to 0 and then that should connect to a branch which will check if the player is moving or not
@dark11demon11 Жыл бұрын
@@chikinfinguh in this case you won't generate stamina when you just walk...
@chikinfinguh Жыл бұрын
@@dark11demon11 generating stamina and draining stamina should be different functions. so they won't effect each other
@dark11demon11 Жыл бұрын
@@chikinfinguh wait I just woke up and wrote something that not what I meant. So disregard first message. the two functions are supposed to be symmetrical. I'll experiment in code. I remember Either you not gaining stamina while shift, or you won't be able to run again still holding shift and press W. But I need to get to code to see where I left last night
@johnmiller49982 жыл бұрын
hey guys so if you get an error about not having bp third person inherit player controlller heres the fix The warning message is because you are trying to cast a PlayerController into a Character (never gonna happen)… But, the solution is very simple! Just replace the “Get Player Controller” node with a “Get Player Pawn” node. Hope this helps!
@toufu_studio Жыл бұрын
Thanks for the great tutorial! May I use the content presented in your tutorial in my game?
@duckyducktape4205 Жыл бұрын
help at 14:00 „get stam“ doesnt show up
@Mohamed88Hassan10 ай бұрын
I really love ur videos u r amazing keep going body , ty 😇
@vum38192 жыл бұрын
Hi Matt! Can you make a crouching tutorial for Unreal Engine 5. Thanks you.
@svallone77252 жыл бұрын
How would you make main character limp from damage, attack or from falling? any tutorials or help with it??? & luv your tutorials man… thank you so much… 👨💻🌎
@KaiJohnson-zf7ci Жыл бұрын
matt for some reason I cant get event begin play, there is already one of them, could I have some tips?
@crazypopcorn78012 жыл бұрын
it's working but even if my character is standind still, if I hold left shift the stamina starts consuming, can someone tell me how to fix it?
@astralstormgamestudios1259 Жыл бұрын
What's the reason for making functions when you could make it right in the event graph? Is functions a cleaner and more reliable way?
@deanthedev9 ай бұрын
Great tutorial. But if I stay still and hold shift stamina goes down.
@Paprochino6 ай бұрын
I can't make a second "Event beginPlay" node 12:00 what do i do? code doesn't work with out it
@foxyandrstorygamer6 ай бұрын
Just use sequence
@Natec_k3 ай бұрын
how do you have multiple event begind play nodes in your third person character event graph!! Thank for the help btw your awsome 2 years later
@MattAspland3 ай бұрын
I only have one, but you can get a “sequence” node after event begin play to have multiple execution pins
@Jambo8575 күн бұрын
great tutorial, theres just one thing; when standing still you can still drain stamina (as though you are sprinting). is there a fix to this?
@DarkPlayerBr9 ай бұрын
great tutorial 🕶
@drgrass802 жыл бұрын
I have one issue the event begins play i can't use two of them because u have the one already so how did u get the second
@RinateZ2 жыл бұрын
If you still don't have a solution try adding "Sequence" connected to "Event BeginPlay" which will have two outputs of "Event BeginPlay" or more. That's what I did at least.
@WarIsntOver Жыл бұрын
@@RinateZ Thanks, this helped me.
@TheRealLM_FN Жыл бұрын
my project seems to priorize the default speed. When the defaut is 300, the walking in 300 and the run is 600, its locked up to 300 in both walking and sprinting. It glitch and seems like the player is locked in a grid snapp
@riobod4 ай бұрын
same heve u resolve this ?
@samuraiyt44532 жыл бұрын
Perfect for my game!
@kresus10 Жыл бұрын
Amazing.
@omersaidsaydan2 жыл бұрын
Hello guys. I make this system, but when it filled full it says " Infinite Loop Detected." Can You Solve this problem?
@NOI2Z Жыл бұрын
you fix it?
@cosmicgub10148 ай бұрын
@KTW_Goku_victim in character blueprint delete the "STAMINA REGEN" node and keep it only in stop sprinting function
@cosmicgub10148 ай бұрын
@KTW_Goku_victim in character blueprint delete the "STAMINA REGEN" node and keep it only in stop sprinting function @@NOI2Z
@WarIsntOver Жыл бұрын
Whenever I try to make a new event beginplay it just pulls me to the already existing one on the 'Add Input Mapping' section of the prexisting blueprint... Any tips? It seems to be the issue in regards to getting the stamina bar to show up. A regular Event Begin wont work for either.
@WarIsntOver Жыл бұрын
Nvm i got it. Add a sequence and u can connect it to both.
@yeehawbaby Жыл бұрын
@@WarIsntOver You saved me thank you so much
@iampinball36697 ай бұрын
I’m confused. I did everything right, but when my stamina is drained it doesn’t refill like yours, it fills up 1/10 the way and then suddenly stops.
@NoahUhler-qv1ok4 ай бұрын
also me i am trying to fix it
@nmddiez63742 жыл бұрын
Quick question, if I press shift but I don't run, my stamina goes down, how do I block this?
@Hunter-lw1gl2 жыл бұрын
you could make one of the conditions for setting IsSprinting? to true by using velocity. Basically, get character movement velocity, get vector length, if vector length is greater than the actual walking speed (not sprint "walk speed") then IsSprinting? gets sets to true.
@dandonche851 Жыл бұрын
@@Hunter-lw1gl This worked like a charm
@ApocalypsFroid2 жыл бұрын
hello sr. can you make experience bar to get when kill monster ?
@punkx4044 Жыл бұрын
very greate tutorial!! but can you help me with another problem which is related to speed? I'm trying to create a character movement like in the game Super Mario Bros. Mario starts walking at low speed and gradually accelerates (without pressing additional buttons). In Unreal Engine, the player uses the same movement speed (starts walking at the same speed, continues walking at the same speed and stops instantly) Thank you!
@LaceUpBrah Жыл бұрын
Something is really strange, I've literally double checked and everything works as intended in game but the stamina widget doesn't change at all like it would be empty at all times even though it isn't.
@spiderraptor95 Жыл бұрын
Great Tutorial! I was able to use this perfectly on a UE4 project I've been working on. Although in my project, I have a main menu. And I noticed that the stamina bar appears on my Main Menu. Do you know how I would be able to remove the Stamina widget from the menu so it only shows in my actual game level?
@grus.clausen Жыл бұрын
Either make the main menu a seperate level or hide the widget. That would be my guess
@JerrysCousinn7 ай бұрын
My only issue I am having is when my character dies and respawns the stamina bar does not fill back up when I posses a new BP_Thirdperson. The function works perfect, it just doesnt show that the bar is filled back up after death and respawn
@Lessah_the_pig2 ай бұрын
Hello @MattAspland I have recently found an issue with this tutorial, the stamina bar does not seem to show up, I'm wondering if there is a fix. No rush!
@NOTxINewGenIx Жыл бұрын
Ok I've been stuck on this video for two days and I can't place the stamina on screen
@thecrusader1673 Жыл бұрын
If you're consuming stamina while standing still then this is how you fix it. Acquire a "Get Velocity" blueprint and from it's Return Value connect it to a "Not Equal Exactly (Vector)" , then create a branch and connect the "Not Equal Exactly (Vector)" to it's condition. From "Input Action Sprint" reconnect "Pressed" to the Branch, connect the "True" from the branch to "Start Sprinting" and connect the "False" to Stop Sprinting". Now you may not consume stamina upon standing still but if start sprinting and then immediately stop and continue holding down shift, you will continue to consume stamina. To fix this last problem you must get your movement input action and connect "Pressed" to the branch and "Released" to stop sprinting just like your sprint input action.
@boigebbz930 Жыл бұрын
The top is very helpful and clear but I'm still having trouble with the last part. I can't find the movement input that you are talking about.
@thecrusader1673 Жыл бұрын
@@boigebbz930 Ah, there is no movement input action in the tutorial but it is assumed that you have input actions for WASD so you can move around. I had an enhanced input action that covered moving for forward, left, right and back.
@thehobbist55447 ай бұрын
If you are having this issue in the first place, go into the "stop sprinting" function and just uncheck the "IsSprinting?" box under the set node.
@tehf00n2 жыл бұрын
Strange but you keep doing tutorials on things I've just done. :D
@xxspecterxx5 ай бұрын
I can’t figure to change the drain speed, I also drain stamina when not moving
@pauladams85032 жыл бұрын
Great tutorial, Matt. Thanks you! But I'm running into an issue I can't figure out a fix for... When my stamina reaches zero, it kicks off the Stop Sprinting function correctly, and the character goes back to default speed, but the stamina does not go back up if I keep shift held down. I'm having trouble finding a way to cancel out the KeyPress, or call release. Any advice would be appreciated.
@knnouwn2 жыл бұрын
Found any solution?
@NorwinLabs2 жыл бұрын
@@knnouwn Go back to your stop sprinting function. Add regen stamina custom event to the end! That worked for me
@Panic.official2 жыл бұрын
@@NorwinLabs Thank you so much!
@KylezUwU Жыл бұрын
Anyway to have it so you cant sprint until the stamina is fully regen? Also when standing I still use stamina. Comments on this cant seem ro resolve the issue.
@gustavbechmann8952 Жыл бұрын
How would you create a delay after you stop sprinting, before you regen stamina?
@albn_johanssn2 жыл бұрын
If you press and hold your sprint key without holding down "W" stamina still drains. How can I fix this?
@Fire-bolty10 ай бұрын
you can use a branch with a the condition chr. movment < 0
@thehobbist55447 ай бұрын
@@Fire-bolty Where? What node? Function? Elaborate please
@Fire-bolty7 ай бұрын
@@thehobbist5544 ok use a branches and the condition is a refrence to the chr. Moment and attach it to node < 0 and thats what you attach to the condition
@prishongamer300 Жыл бұрын
How are you get event beiginingplay
@elious611 Жыл бұрын
When i create an event begin play, only the one create will stay stopping me from moving, is there a way to fix this?
@tianzlatev31192 жыл бұрын
how to make jumping take stamina?
@雞菜 Жыл бұрын
hello I want to ask if my character was stop and Iwas press the shift at the same time but I dont want to minus my stamina how should I do
@magegames6202 Жыл бұрын
i used niceshadows tutorial for making a round stamina bar anyway to link that to this i can change the percen manually but i want it to do it in real time automatically or maybe you can show us how to make a round stamina bar like breath of the wilds or genshin
@BabeeGravy Жыл бұрын
Hey so it works perfectly but the bar don’t show up on the screen
@perso-x9v8 ай бұрын
me too
@ayaanhaque63402 жыл бұрын
Hi Matt. Could you make a tutorial on a sinking ship? Like a cannonball/bullet puts a hole in it and causes water to flood in. Because the default UE5 water isn't completely physicalized, You could spawn in a Niagra Fluid at the impact point and cause it to flood the ship, maybe setting a specific weight in the process that could sink the boat.
@wesss93532 жыл бұрын
Sea of thieves?
@CarrotKing269 Жыл бұрын
I'm having troubles with the event begin play thing. I can't manage to get another instance of it in the character blueprint since theres already one in there, and I can't add the Regen stamina thing to it there either as it can only take out one thing, and it would get in the way of the base input mapping that unreal had preinstalled. I've tried taking the event and placing into the blueprint but it just pulls me over to where the event is already placed, same thing with when i try to put it in manually. can't figure out how to do this and since I can;t see stamina without that it get's pretty annoying. anyone know how I would fix this?
@mabocy Жыл бұрын
To this event begin play you can add sequence, after you add it you can easily add Regen stamina there
@MasterCheeksUNSC7 ай бұрын
@@mabocy This worked for me!
@Skeltcher2 жыл бұрын
I followed your guide on how to create a health bar, I was wondering if there is any way to show all the widgets on the same screen. It would make it easier to position them correctly.
@MVzin7712 жыл бұрын
just duplicate the health bar widget just to align the stamina bar with the health bar and delete the heath bar from the new one and then in your begin play event just add a Sequence node and connect the health bar on "then 1" and the stamina on "then 0"
@Skeltcher2 жыл бұрын
@@MVzin771 Thanks, i'll try that!
@Rapid412 Жыл бұрын
Hey, so have been trying to add a Event begin Play to my BP but it wont let me, please help
@Tastyham999 ай бұрын
This wasn't really working for me properly, not sure if I did it wrong or not. Kept adding stamina once it got to zero even if I was still running. But for anyone having issues I just put an IsSprinting check in the Event Tick, that way stamina is constantly being checked.
@mthangtrng8056 Жыл бұрын
how can I create another beginplay event?
@sonofzues84142 жыл бұрын
Thank you very much
@Axel0689 Жыл бұрын
Can this mechanics be linked to other actions, such as rolling or other? That is, as I perform rolling, I consume stamina. And when I get to a specific percentage, I cannot perform rolling.
@painpega Жыл бұрын
I managed to do it for jumping, so I imagine you can do it with rolling too. I used the default jump and literally just copy pasted the drain stamina section and connected it to the blue Jump box next to the EIA. Make sure to delete the Stop Sprinting box connected to the true section of the first branch. Then you can change the value in the Subtract node to make jumping take as much stamina as you want I imagine you would do the same thing with any other mechanic as it's really just a keyboard input with that functionality added to the end of it
@devastaterboy822710 ай бұрын
I have a problem my stamina bar is not decreasing when I release l shift
@agentshadow6618 Жыл бұрын
I have issue please anyone help, how can i make chracter run when he is holding shift
@ghosteso6797 Жыл бұрын
I’ve followed this through twice and I’m unsure what’s going wrong. Instead of regen stamina at event begin play, my project is regenining stamina when I press the keybind I set up to sprint?? Can anyone help!?
@charzardking94197 ай бұрын
how come mine does not drain the stamina like at all and why does it also not stop sprinting when I don't hit sprint it walks when I don't hit but when I do once the character is running for the rest of the code
@WM_Plays2 жыл бұрын
can you make it so when you jump you drain stamina? Also great tutorial!
@32bitbailey2 жыл бұрын
hey! quick question do you think there is a way to implement this into a boost system for a racing game? thanks again :D