Congratulations! You have reached the end of this tutorial and have now created a simple objective system!
Just three things to take note of:
-
This is a great system for more linear styled games, but if you’re creating an Open World type game you’ll problem want to create an entire blueprint system using these basic techniques as a foundation.
-
If you wanted to keep the trigger box text up and then have it be replaced by the congratulatory text (basically the player enters the trigger and the text is shown, the player exits and the text stays up, and when the player touches the box the text is removed from the HUD and the “Good job!” text appears) all you’d need to do is setup the trigger so that the text appears ON Overlap. Then, on the overlap for the second trigger (the one on the box), have it both Remove from Parent with the target being the first objective widget as well as have it draw the congratulatory text to the HUD.
I could update the tutorial to do this as well, but I’m not really a fan of this method. Some developers like to do it, but I’ve always felt having text linger expresses one of two things (or both) to the player:
a. “We don’t trust you to remember your objective”
b. Distraction (having text in front of you all the time is rather distracting)
-
Just some advice, familiarize yourself with certain properties of nodes (for example the Delay node’s values being in terms of seconds) because it could really save you. You may not know EXACTLY how to do stuff, but you’ll be able to put two and two together quite easily.
-
Think logically! Remember programming, visual scripting included, is a language. Meaning that it flows. If you want to have something executed only once, I’m willing to bet there’s a node that will do exactly that. Where do you put it? Well think about the positions of literary parts in a sentence.
Subject, verb(s), object(s). It should be exactly the same thing (Subject: Trigger Box 1; Verb: Do Once; Objects: Create Widget, Add to Viewport (Viewport)…“Trigger Box 1 did only one, create a widget, and added it to the viewport”).
Its strange, but it helps.
Alright so I lied, it was four things.
If anyone here has any questions, needs additional help (now or later), or simply wants to talk I’m always around.
PM at any time you need me!
So what are you still doing here? The tutorial is over! Go make some games!
Good luck, have fun, and never give up,
~ Jason