I'll have this week's assignment post up later tonight. For now, here's a tutorial on how to make a simple jump pad.
Making a jump pad isn't exactly complex. However, it may be almost impossible to find all of the components if you don't know how. I'll explain what I mean in a moment. Let's start from the beginning:
STEP THE FIRST: Have you tried running Unreal 4?
Create a new Actor Blueprint. Name it whatever you like, but for this demo I'm going with "myJumpPad."
SECOND STEP: Make it look like something
Go to the Components tab and drag a mesh or something into Root on the Components box. I used a Torus (in the Starting Content under "Shapes"), but whatever you use keep in mind that if it's a jump pad the player will probably need to be able to get on top of it (or in it if you're using a particle effect or just a volume). Of course, if it's a bumper or otherwise just makes them move in a direction other than up, they just need to touch it.
STEP THREE: Put it in a box
Select the Box from the Add Components list, then reposition and resize it. It's exact dimensions will depend on when you want it to make them jump, but you'll want it to at least reach above the mesh. Here I've also made it wider than the Torus so the player doesn't actually have to get on top of it, but still has to be up close to it. I've found it won't work without using this as a trigger volume.
FOUR: ACTIVAAAAAAAAAAAATE!
Go back to the graph, right click on the Box component, and under Add Event choose OnComponentOverlap. This is crucial to getting the Blueprint to actually function.
FIVE: Press the Jump Pad button
Left click in the Blueprint area,
uncheck "Context Sensitive," type Launch, and select "Launch Character."
This is the command that throws the character in a particular
direction, depending on the values in the "Launch Velocity" vector. A
positive number will launch them one way (up in the case of the Z-axis),
and a negative number will throw them the other way (down along Z).
I've found a value of 500 is about the height of a normal jump for the
default character, so I set all my jump pads to 1000. X and Y can be
left at zero, as the player will continue moving in whatever horizontal
direction they were going at launch. Using non-zero numbers, however,
means there will be force acting either with or against the player,
depending on which way they are moving along those respective axes.
SIX: I feel like I'm forgetting something...
Oh, right.
The Launch node needs a target, but it won't accept an Actor. It will, however, accept a Character, so you will need to get a Cast to Character node. Remember earlier how I said it can be difficult finding all the parts to this? As far as I can tell, as of 4.5, there is only one way to get the Cast To nodes, and if you don't do it they won't show up in the list. So make a note of this so you don't forget... Unless this is something you do all the time, which means I'm wasting it.
Drag out from the "Other Actor" output and make sure "Context Sensitive" is checked. After that, you can find it under Utilities > Casting, or just type it in like I do. Once it's in, make sure the Exec outputs/inputs are connected, as are "Other Actor" to "Object" and "As Character" to "Target," and Bob's your uncle.
FIVE, I MEAN SEVEN: Put it in your level
Like I said before, you may need to have your players get on top of the jump pad. If, like me, the mesh you're using is too big to step onto, you can either make the mesh smaller or just lower it into the floor as shown. Of course, if the box is around the mesh instead of just on top of it, it might not matter as long as the player doesn't get snagged on it.
EIGHT: Step on it!
Now let's see it in action:
Wee!