Hello @0DaStallion1 ,
Welcome to the forum! It’s great that you’re getting into the world of programming and Blueprints. It can be frustrating at times, but it’s definitely not impossible. If something doesn’t work right away, don’t worry,it’s part of the learning process. Take a breather, try again, and keep experimenting.
The code you were given might work, but I’d recommend taking a bit more time to understand the basics before moving forward. Since you mentioned you’re just starting out, it’s best to go step by step and get a clear understanding of how Booleans and Branch nodes work.
Here’s a quick explanation of each one:
Boolean:
this is a variable type that can only have two possible values: True or False. It’s used to check things like whether something is active or inactive, whether a character is jumping, or if a certain condition is met.
Branch:
this node is used to make decisions based on a Boolean value. When executed, it checks if the condition is True or False and sends the execution flow to the corresponding output.
I recommend watching a few videos that explain these concepts with simple examples and also checking the official documentation, which covers them in detail.
Branches & Booleans
Flow Control
Another thing that can really help you while testing your logic is using Print Strings and Breakpoints:
Print String:
displays messages on the screen while the game is running. It’s useful to check if something is being executed or to see the value of a variable. If nothing appears, it means that part of the flow didn’t run.
Breakpoints:
these are markers you can place on Blueprint nodes to pause execution and inspect what’s happening step by step.
With these tools, you’ll get a much clearer idea of how your code flows and easily spot when something isn’t working as expected.
If you have any questions, don’t hesitate to come back and ask on the forum.
Hope it helps!