Hi there! So sorry if this is a stupid question, but I’ve just moved over from Unity and struggling to learn the Blueprint system on top of everything else. I’ve tried looking for a solution online but can’t quite get it, so any help appreciated
Basically, for my menu, I have a small animation sequence that plays for a couple of seconds before the player is prompted to “press any button to start”. I’ve got my sequence working, and I know how to move to the next level on any key press, but can’t quite figure out how to marry the two. All of the answers I’ve found for my question are more for delaying character controller inputs rather than just simple key inputs.
This is what I currently have in my level blueprint:
I feel as though from answers I’ve seen online it may be something to do with having a Boolean? But if someone has a visual example that would really help. I’m probably overthinking it, but as someone totally new to Unreal I would appreciate it if anyone could dumb it down for me - thanks in advance!
You could have a Boolean variable for “Input Accepted.”
You make the default of this value be False.
You then wire up “animation done” to an event that sets this boolean to True.
Finally, in the input actions, you check whether this Boolean is True or False with a Branch node.
Alternatively, instead of tracking this state in a Boolean, set the “input enabled” property of your widget-and-children to disabled/enabled appropriately, if you’re using mouse input for the widgets.
However, as a game player, I hate it when games force me to wait through animations, even when I know what I want to do. You might want to allow inputs before the animation is done, to avoid frustrating impatient players.
Thanks so much for the simple explanation - super helpful! However, somewhere between me saving out the menu last night and coming back to it this evening, my original blueprint actually functions the way I intended it to? So, I suppose my original screenshot is an actual solution to this too. Funny! I swear this wasn’t working last night, but oh well - thanks anyway!
And thanks for the advice, but it’s literally the shortest animation of the logo before the full menu pops up and loops continuously. I think it should be fine as it’s only an arcade experience for an exhibition, so most people aren’t even likely to see it. Either way, patience is a virtue and not everything in life is on-demand