[flow_default] Transcription: 002 Level transitions based on triggers.json
Browse files
transcriptions/002 Level transitions based on triggers.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_file": "002 Level transitions based on triggers.wav",
|
| 3 |
+
"text": "Hi everyone, welcome to the trigger level tutorial. And in this tutorial, we're going to look at how we can transport our player to a new level by entering a trigger box. And you're going to see what I made in just a second. On the previous tutorial, I showed you how to create a simple level transition. So by pressing the tab key, we open a new level based on the level name. And now we're just going to do the same thing, but we're going to edit so you can interact with the world. So what you're going to do now is we're going to go to the top left and click the create button, and we're going to search for the box trigger. So the box trigger right here. And as you can see, the box trigger got spawned in the world. What this is going to do is that whenever, so what we're going to do is that whenever the actor actually enters this box, it gets transported to a new level. This is really cool because whenever the actor reaches that box, so if you're creating a game, whenever the actor reaches the finish line, you can change scenes and spawn the actor in another level, which is awesome. So what we're going to do here is we're going to grab this box. Let's press the Select and Translate Objects key, which is the W key. Let's move it here up the ramp. Let's press the N key to snap it to the ground. And let's scale up using our R key. So let's just bring it all up here. Now let's just bring it up to the top. Let's press the N key to snap. Perfect. Let's align it to the left here. So we know that that's the region that we want our actor to spawn on a new level. Cool. So every level, so every map that you have in Unreal Engine has its own blueprint. And there is where you're actually going to do this action. So we're not going to use the third person character blueprint to go to another level. What we're going to do is we're going to use the level blueprint to access the level blueprint. We're going to go to the top left. We're going to select blueprints and we're going to click open level blueprint. This is going to bring a tap and it's going to show all of our level blueprint right here. Perfect. And as you can see, it says third person example map and that's the blueprint for that map. So what we're going to do is with our trigger box selected, you can select it on the right here or you can click on it. We're going to go to our blueprint and we're going to right click. Whenever you right click, you're going to see the added event for trigger box one or call function on trigger box one. What we want to do is we want to add an event based on a collision. So a collision on the actor. So we're going to do add, we're going to click on add on actor begin overlap. This basically means that whenever our actor is close to it and it starts to overlap with the box, we want to open a new level. So what we're gonna do here is we're gonna right click again and we're gonna select our function that I showed last time called open level by name. We're gonna select our level name to be right here. I'm gonna select my landscape too. Perfect. But we're missing something. We're missing the actor's reference because right now we're in the level blueprint, but the level doesn't, it doesn't know the actor like doesn't know that this blueprint is being performed by the actor. And as you can see here, we need an actor to connect with the on actor begin overlap. So we're going to press the on the other actor right here and we're going to place like dragon place a new node and we're going to type in cast to third person character. This is basically just going to cast to our character. So we actually get our character from there. And as you can see, it already connected over there. We can just arrange it here. And whenever we get our character, we want to open the new level. Perfect. And as you can see, whenever, so let's recap. So whenever the actor begins to overlap with our trigger box, our actor right here reference, it's going to open a new level. So it's going to open let's keep to let's test that. So let's compile, make sure it compiles green check, save it. Let's go back to our map. Let's hit play and let's walk towards the box. As you can see, we just got teleported to our new level. This is awesome. It's a great game mechanic that you're going to be using very, very often if you're creating your own game or if you're creating multiple scenes. So thank you so much. I'll see you in the next tutorial.",
|
| 4 |
+
"language": "en",
|
| 5 |
+
"confidence": null,
|
| 6 |
+
"duration": 276.37
|
| 7 |
+
}
|