 Hi there, welcome back to GameDev Academy. I'm Shane. Remember to sign the register down below as per usual and I'll flap the names up on screen, same as I'm doing here in the next video. This is our little ritual. I remember if you want your colour coded name tell me which house you're in. This is the third video I'm putting out this week. I'm trying to make up for being poorly and I'll get back on track for this exercise so that's happening. Last time we got it so that when the ball leaves the playfield it gets destroyed and this time what we need to do is when the ball's destroyed we need to get it so that it makes a new ball and we'll get all that set up. So let's do it. Now that we have the ball being destroyed when it leaves the playfield we need to make it so that we can spawn a new one and that's actually really really easy to do so this step's going to be a short one it won't take as long to do it but we need to do it. It's short but important much like my P never mind. Right so the first thing I'm going to do is sort out the name of killzone because for some reason I just completely ditched my naming convention so we'll fix that first I'm just going to go rename and I'm going to call it bp underscore killzone. Bonus points if you were shouting no you're naming it wrong when I did that. There we go that's done right what we need to do now is go into bp ball let's open that up and the thing that's going to trigger the spawning of a new ball is when the last ball gets destroyed and there's actually an event for that so if I just right click and type destroyed you'll see that event destroyed pops up there it is lovely so basically what we're saying to Unreal Engine is as soon as this particular blueprint this ball gets destroyed we can spawn another one of them so what we're going to do is go to we need to get the player paddle I will show you why so let's just open the player paddle up and the reason that we're going into the player paddle is because it's the player paddle that has the spawn ball blueprint so we need to get the player paddle and then from here I'm going to type spawn um ball no what did I call it new ball is what I called it let's just double check yeah the customer event's called new ball that makes sense right so what we're saying is that whenever this gets destroyed run the new ball script in the player paddle blueprint and guess what that will do it'll give us a new ball so let's just comment that up um so new ball when one is destroyed yeah so we need to test it let's do that so compile save and into here so let's play so what I need to do first is launch the ball that's all still working jobs are good and then we'll let it flap around the level a little bit I need to move my paddle out the way and it works so now we could just play this forever until we destroy all the blocks and then well we could still keep playing it and that's that's all good so yeah a successful step well done everyone what we're going to be doing in the next step is starting to get it so that we can set these blocks up with different colors and have different scores so that then we can get the on-screen score displayed and start to edit into more of a game so stick around there's more classes coming and I hope to see you in them yeah I believe that quality education should be available to everybody and for that reason all of the classes at game dev academy are completely free and we're supported by our very generous school governors over at patreon if you'd like to become a game dev academy governor and support our work as well as helping us to steer the channel in the right direction then use the link in the description to be taken to the patreon page