Please take a look at this video and the blueprints and tell me what’s causing this issue. I don’t know why, but my character is moving after death when I press the shift key which is used for dodge roll, but if I don’t press the shift key, then the character/camera isn’t moving. Thank you for looking into this. I have tried to fix it for at least 3 hours or so already.
Hey @GeekManGames ! Welcome back.
Try using “SetInputModeUIOnly”
Or you can use “Disable Input” once you die, then when the UI pops up use “SetInputModeUIOnly” and “Enable Input” again.
Give that a shot and play around with those!
@Mind-Brain where am I supposed to put this code ??
Here’s the Dodge (Shift Key) code
I would put a disable input node right after the damage check, before you start the dying animation. Not the boolean check you’ve put in, but the actual “Disable Input” node. Then a “Set Input Mode UI” after the dead screen shows up so the player can interact with it.
It doesn’t have anything to do with the dodge roll. Though, I see that you’re using a bool to prevent double inputs, and you have not put a branch on the dodge roll action to check if Inputs are allowed.
@Mind-Brain Can you show me in a video or screenshot on how to implement the “Disable Input” and “Set Input Mode UI” node.
I do have branch the dodge roll action but may be I am misunderstanding where you mean exactly. I have branch right after the comment (Disable Input form the player). Please send me a screenshot.
I am logging for the day, I’ve been at it for almost 10 hours today but I will be back tomorrow to do this at 9am ET US. Thank you again for always doing your best to help whenever you are available. Have a nice evening.
I’m confused. They’re very simple nodes? You just plug in the white line at the appropriate location (which is in the death code, and you did not share that), then plug in the player controller. I can’t show you a screenshot or video, this is your project… you have to figure out the best place for it, and I have given many suggestions. Trial and error!
@Mind-Brain Good morning and here’s what I did with the nodes and please take a look at it and now my character doesn’t move at all after respawn.
Apologies if this sounds rude, but this is how I feel. I wasn’t asking you to look into my project to help me which by the way, few people have done it simply to help a new student like me and I am very very thankful. I was simply asking you how you would connect the nodes. You are probably annoyed by new students like me. If that’s the case, I will simply ask other people to help me here. Nothing personal and again, I don’t mean to be disrespectful to you or anyone else in this community by saying this: I will do whatever it takes to get what I want in order to reach my goal and dream.
Okay, but you did the first half of it!
I’m simply saying to you that you are asking something impossible. Also I am not going to do 100% of it for you as you say you are a student that makes it MORE important to try and leave something for you to figure out, logically. I try to give you all the pieces you need, at the very least. Showing you exactly how to do something takes away a learning opportunity.
Make backups, try stuff, break it, reload your backup. Fail fast.
Anyway, is there a reason to have the same code (except that input boolean) on True AND False for the “Dead” function? Does this even run if the character isn’t dead?
Regardless, you now have the functionality you needed, your character doesn’t move when it’s dead. Now, the goal is to make it move again. So you did the thing you needed! Now, you need to just do the same thing backwards for when it starts. Add “Enable Input” (with a Get Character Controller node input) and “Set Input Mode Game Only” on the “Try Again” button click logic, or anything that doesn’t reload the entire level.
I used to immediately ask question here few months ago but I don’t do that anymore. I usually look for an hour or so to figure it out on my own and if I can’t then I ask question here. What seem like a easy and simple solution for pro veteran like you is very complicated for a new student like me!!! Please remember that…
In previous course our mentor had taught us on implementing G key to use cursor instead of using Shift + F1 which I totally missed but after going back to my course and looking for hours to figure this out, here’s the video of what it looks like now…
That’s great!
You’re doing great. Really, you are!
I would like to point out that while I helped push you along, gave you some direction, and gave you the tools to fix your problem, YOU were the one that solved it! I filled the gaps in your knowledge, you learned, and you solved it! If I were to tell you exactly what to do, you wouldn’t be learning. Part of why I don’t just lay it all out is because you need to understand how it all works by fidgeting with it.
We are all at different points in our journey with this. I consider myself intermediate at best, especially compared to any specialist.
Please don’t take offense! I like helping you and you’re going so far with your project, I am trying to teach you to fish instead of giving you a fish.
But it looks like your problem is solved?