Godot | Cutscene & Some Tips

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right let's do the intro for my game together it's going to be a cutscene that plays when you select new games it's going to be skippable too so if you start a new game and you don't want to see the cutscene you can skip it first create a new scene 2d scene i'm going to add a animation player and i also have my sound i have voiceover so i'm going to add the sound node the audio stream player i don't need 2d because it's not positional so i'm just going to use the audio stream player for this i could add a new track add bus and this could be music and i could add another one voice so in my option if i want to lower music or just voice or special effects maybe here you can choose buzz so this one could be music and i could add another one and voice is going to be this one music and voice so i will be able to control those in the settings so when those are done i can select my animation player and then animation new intro that's it that's going to be the only animation it's going to play on start auto play unload when the player is going to select new game and confirm he really wants to start a new game then this scene will be loaded so intro cutscene will be played will be loaded and unload it's going to be played let's start by placing the voiceover so i will use the voice to paste the intro so let's try add track audio playback and voice and then i'm going to add another one audio playback and then i'm gonna have music too if i go in my folder for sound i have my music that's gonna go in there and let's put the first voiceover of intro start offset let's make the time longer uh i'm not sure how long i'm gonna need let's zoom out with control and scroll let's go with the length of the music and i'll make it shorter if i need to let's try this in a universe where all the living creatures are all balls all right not too bad maybe the music is a bit too loud so now we're gonna add some visuals so let's start with the first sequence the first sequence is empty space with stars so i'm going to add a color rect i'm going to make it full screen i'll change the color for black all right this is my space then i have some stars just like that let's make this bigger and then to do the i want to do some kind of zoom effect like you're traveling through the space i think the way i'm gonna do this i'm just gonna have multiple stars the stars are a bit too bright so i'm gonna go invisibility modulate and add some alpha to them like this that should be nice okay with my background my black background for the space and my stars so i think i can change the object rotation pivot with it in the center because now if i transform and scale it going going to scale from this point go to the beginning and key them all scale let's do it for all of them let's make the panel bigger a bit so it's going to be easier now i have my keyframe at the beginning of each one let's look at the what i'm saying in a universe where all the living creatures are all balls so at the end of my text i want maybe a small pause there's a bit of silence and then there there's going to be a kind of a flash and we're gonna be on the planet and the next text will be played next text is one race of ball was starting to be overcrowded and had to do something now this small part i could go to the end what i would like to have the first star since they are the closest they're gonna zoom more what i could do is time three for each size and then i press the key so the flash will happen and after that they can stop moving and i'll just hide them for that i could get my color rect at first my color rec needs to be visibility visible so i'll key it yes and at the end right after i can set it to not visible and key it so it's going to be shown we're going to have the zoom and after that it's going to hide and the other sequence will start so let's zoom the other one too and key that so let's look at this in a universe where all the living creatures are all balls so that's not too bad so this sequence we see the balls and this is the place where i say that they are overcrowded so i'm gonna draw a island then what we can do is zoom on this one and pan around the world and we see that there's balls everywhere this is going to be the sequence to world zoom in this scale uniformly now it's in place you can see the blue line it's really thin but this is the line for the camera i just placed it correctly in frame now let's do visibility f and key it this is my sequence too so it's off but i'm gonna i'm gonna place it at the beginning of the shot so it's off when you start and if you want to move a key you can move it manually or you can select here time zero so on start it's going to be there and you can also change the snap setting here if you want more precise timing you can do 0.01 but for now i don't i haven't seen the need for it so i'm just going to keep going like this all right after the space this one will be on so what i can do is place my cursor where i want the frame to be i can duplicate the key and then change it to on so then it's not there and boop it appears okay but in between those two i want like a flash i could add a new color wreck this one is gonna be all over the space and then it's always going to be visible but the only thing different is going to be the visibility alpha let's say from this part i'm going to go in visibility modulate and alpha 0 then key that and then go when i see the land and there now i can duplicate the key and in between i'm going to duplicate the key again but this time i'm going to change this to full visibility so let's see one race of blocking what now i just need to hide the space at the same time the fade to white is full so it's 8.7 for the time so sequence 2 i'm gonna do it 8.7 and the same for the space so they're going to be switched at the same time so if i go here and now i play those are all balls oh yeah now that was a problem this is still wide and if i go back to the beginning you can see it that's because at the beginning of your shot you need to duplicate the key at zero so now it's going to be completely transparent you need to reset every variable if you don't that's gonna that's gonna happen if something moves if you change the parameters later in your animation and go back to the beginning it might still be there so now with that let's see the transition one why what's the world all right so that's good so now let's try to place the balls in the world okay now i have placed all of those balls and what i can do now is pan the camera over this the way i'm gonna do it is just move sequence two so here i'm gonna go in transform again i'm gonna go to the beginning to be sure that everything is set correctly i'm gonna key the position then i'm gonna go to where it starts and duplicate it so position duplicate then i'm gonna go to the end of this sequence and place the final final destination so grab the move key move tool um okay yeah the blue square is a bit hard to see but if we track the camera like this about there should be good for the end now let's go on sequence and key the position alright so if we look at that one race of ball was starting to be overcrowded and had to do something it might be a bit fast so let's do less movement the ending position could change i'm gonna remove this key delete now the position is reset okay so this time i'm gonna move it just to about there maybe um then let's re-key position and let's see if this is good was starting to be overcrowded and had to do something all right so the rest of the intro is pretty much the same a bunch of translation rotation and all of the basic transformation changing the visibility instead what i'm going to do is tell you about some tips and tricks that you can use to get your animation faster like here i have a rocket and this rocket is a scene and in this scene i have an animation player with a animation called launch and this is only launching the rocket so if i play it just wind back and launch so this animation i can play it in my main animation but the thing with this is that you need a script to play it but if this is just a general script i give it the animation name i want to play and then play it when i call play so in my scene here in the the main animation player at the end here i have rocket i call the function play but the thing with this is that you won't see the animation of the object rocket in the main scene but in the game when the game is playing it's going to call play and it will play the animation in your animation player if you have a bunch of key that you will have to repeat like when i have my fade my fade white if i want to repeat that instead of creating each key one at a time you can copy multiple key duplicate key so i have my fade here too so you can copy multiple keys of that that's easier uh let's say my player already saw the intro and doesn't want to see it again you can just add a button in your scene let's say my note 2d here i'll add a script intro cutscene and then in this scene i will insert a add a child i will get a button and skip so when i press on button press i can simply call my uh scene load and change my scene so when the player click on skip it just it will just load your scene at the end and if you want that when the intro has done playing that it loads your scene you can just at the end here call the function on your cutscene script and here you could have a go to menu or go to first world function and another thing that could be useful is if you have a player let's say you are in the game you could also call your player movement from here let's say that here my player let's say you have a function move too instead so you could disable your player so the input from the player would be disabled and you could call move to from the animation player let's try that i'm gonna place a player and from here i could add a track called method find my player and here insert key i have my move to and here if you click on your on your key move to function in the inspector you can give it the arguments so my first value is the x so it's going to be a int and i want you to move 1 and x that's it the other one is int and it's going to be 0. and when the codeplay the the player will execute this and if your player has all its animation on it it will play the animation as they are here so that's about it some tips and tricks and thanks for watching if you have some ideas on what you would like to to know in godot let me know with that that's going to be it for this video thanks for watching and i'll see you another time i guess see ya you
Info
Channel: Calame321
Views: 1,733
Rating: undefined out of 5
Keywords: game development, godot game engine, godot engine, game creation tutorial, game development for beginners, godot tutorial, godot 3.0, godot 3
Id: 1dCXuexUIBY
Channel Id: undefined
Length: 13min 49sec (829 seconds)
Published: Thu Jan 21 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.