Using Timeline for Cutscenes in Unity: How to make a game like Zelda using Unity and C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • Hey everyone! Quick little prefab workflow tip, then onto using Timeline to make a small cut scene. Enjoy!
    My Patreon! / taftcreates
    Magic bar and Powerup Sprites:
    drive.google.c...
    Bow and Arrow Sprites:
    drive.google.c...
    Ogre Sprite:
    drive.google.c...
    Door Sprite: drive.google.c...
    Project git link: github.com/mis...
    Bit script font link: opengameart.or...
    Ryan Hipple's talk:
    • Unite Austin 2017 - Ga...
    Richard "Superpig" Fine's talk:
    • Unite 2016 - Overthrow...
    Modified Sprite: drive.google.c...
    Tiled: thorbjorn.itch...
    Tiled2Unity: www.seanba.com/...
    Art Assets: opengameart.or...
    Unity: unity3d.com
    About Me!
    Twitter: / taftcreates
    Discord: / discord
    Github for all of my projects: github.com/mis...
    Very Rough Project Schedule: docs.google.co...

ความคิดเห็น • 125

  • @Krwatkins0002
    @Krwatkins0002 4 ปีที่แล้ว +14

    What an easy way to do cut scenes! I'm currently using Unity 2019.4.4f1 and everything works fine without the fix or so it seems. I hope I won't run into any future problems without it. Thanks for the excellent videos!

  • @KeyboardKrieger
    @KeyboardKrieger 2 ปีที่แล้ว +2

    Man your Zelda series started my interest in making pixel art and games with unity a long time ago.
    Since then I had a lot of fun doing this. Just wanted to say thanks for the good content 😊

    • @stefan429
      @stefan429 ปีที่แล้ว

      me too! this series (although not perfect) is what got me to learn unity and i recommend it to every beginner!

  • @muhamadshara9187
    @muhamadshara9187 4 ปีที่แล้ว +4

    Mister Taft Creates -
    it was really fun to watch your video , thank you for this tutorial

  • @Kelton99991
    @Kelton99991 5 ปีที่แล้ว +39

    When you add a animation track at 5:37 there was no option for me to drag in the connection to the animator. I had to click on the Timeline Manager and then connect the Animator under the Playable Director component. Hope this helps anyone who gets stuck

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +6

      Thanks! That might be a workflow change in 2019.1

    • @alrightytighty1572
      @alrightytighty1572 4 ปีที่แล้ว +2

      Mister Taft Creates saved me about 3 hours of googling, thanks!

  • @ninja_tony
    @ninja_tony 4 ปีที่แล้ว +1

    It's January 26, 2020, and the animation issue is still there lol. Anyway, thank you so much for your series, these are easily the best Unity tutorials I have ever seen (and I've seen A LOT!) :)

    • @ahmetfirat23
      @ahmetfirat23 3 ปีที่แล้ว

      I'm happy to announce this is not a bug in 12.08.2021

    • @animemusic9546
      @animemusic9546 2 ปีที่แล้ว

      @@ahmetfirat23 it is still there man , what are u talking about...I am still trying to fix this issue.

    • @ahmetfirat23
      @ahmetfirat23 2 ปีที่แล้ว

      @@animemusic9546 i dont remember what was that can you tell the unity version you use and details of the bug

    • @animemusic9546
      @animemusic9546 2 ปีที่แล้ว

      @@ahmetfirat23 right after the unity timeline ends , I should be able to control my player , right? But I can't... version is 2020.3

  • @mrvna2840
    @mrvna2840 5 ปีที่แล้ว +3

    THANK YOU SO MUCH, YOU'RE UNIRONICALLY SAVING MY LIFE

  • @AdonisCaballero
    @AdonisCaballero 5 ปีที่แล้ว +3

    I really enjoy your videos! Great job.

  • @mikarutv6075
    @mikarutv6075 4 ปีที่แล้ว +4

    this tutorial is a life saver!!!

  • @thegameblock1991
    @thegameblock1991 5 ปีที่แล้ว +3

    This so cool. I cant wait to start doing this

  • @electricgoat3969
    @electricgoat3969 5 ปีที่แล้ว +2

    Sorry if this has been already asked or maybe already address and I missed it ( Technically I am only on part 45) Are you thinking about adding in a game manager for things like saved progress. I have also noticed small things like the players health resets every-time you move from scene to scene.
    I am planing to signing up as a Patreon this week. Keep up the awesome work!

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +1

      Thanks so much! Yes I'm planning on adding a save game system. In the description of the video I have a rough roadmap of what features to add and when. I'm a bit off schedule at the moment, though.

  • @varun-qx2cq
    @varun-qx2cq 3 ปีที่แล้ว

    Thanks i search many TH-cam channel for this cutscene tutorial , finally i found this

  • @THEHOUSEOFSATIO
    @THEHOUSEOFSATIO 3 ปีที่แล้ว

    you're the man, you don't need all of that scripting with the new versions thanks!

  • @arsalansyed4892
    @arsalansyed4892 5 ปีที่แล้ว +1

    Thank you! You are amazing, and I really appreciate you making this series! :)

  • @barden9796
    @barden9796 5 ปีที่แล้ว

    OMG Thx for this tutorials! You are helping me a lot! Keep this alive

  • @凌穎宇
    @凌穎宇 ปีที่แล้ว

    thank for your video.
    Although I can make some game by myself, still learn a lot from your video.😉

  • @EnchikO
    @EnchikO 4 ปีที่แล้ว +7

    23:52 when u took Hearth Container, u gained 2 Hearts. I had same issue. I guess, it has something to do with Player Collider.

  • @sayidabyan5828
    @sayidabyan5828 5 ปีที่แล้ว +1

    just what i need! i think

  • @phix7351
    @phix7351 4 ปีที่แล้ว

    thank you my dude, you are helping me getting my game done! :D

  • @rutchjohnson
    @rutchjohnson 5 ปีที่แล้ว +1

    You are amazing! Keep up the great work!

  • @coldbyte
    @coldbyte 4 ปีที่แล้ว

    you are a perfect teacher i like your videos and explaining wrong ways :D

  • @TheEyesOfTheJEagle
    @TheEyesOfTheJEagle 5 ปีที่แล้ว +1

    Again! great vid!

  • @dankusmemus4415
    @dankusmemus4415 5 ปีที่แล้ว +3

    Hey dude, thank you for making the only unity 2D cutscene tutorial on youtube.
    I have a small question, instead of making the cutscene in unity, is it posible to make the cutscene as a video instead and import it into unity?

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +2

      Totally. You can create a video player component that plays a video clip onto a texture.

    • @aikou2886
      @aikou2886 3 ปีที่แล้ว

      @@MisterTaftCreates I have been trying to see how can I create a game opening and this seems to be what I'm looking for, thanks!

  • @navidabc5077
    @navidabc5077 2 ปีที่แล้ว

    clear and easy to understand thank you♥

  • @RCLeo
    @RCLeo 5 ปีที่แล้ว +11

    I think the animator overwrite issue is still present in 2019.1 :(
    Thanks for the videos!

    • @Darkrender
      @Darkrender 3 ปีที่แล้ว +1

      No longer an issue as of 2020.1.16 far as I can tell at least

  • @mateoderoubaix7024
    @mateoderoubaix7024 2 ปีที่แล้ว

    Very good video ! Thanks a lot !

  • @jg0328
    @jg0328 ปีที่แล้ว

    Thank you!!

  • @Videogueimeiro
    @Videogueimeiro 3 ปีที่แล้ว +1

    Can I keep my timeline going after a dialogue? Like pause the cutscene so the player can skip the dialogue, then continue it from there? Or do I need to create another timeline for this second bit?

  • @MissScarletTanager
    @MissScarletTanager 4 ปีที่แล้ว

    Do you suggest having all cutscenes as their own Scenes for ease of use? For instance, something like this: Player hits cutscene trigger, screen fades to black, player is transitioned from gameplay Scene to cutscene Scene, then at the end of the cutscene, is transitioned back to the trigger point?

  • @carsonskjerdal473
    @carsonskjerdal473 5 ปีที่แล้ว

    Had a bit of trouble getting that timeline bug fix to work when it involves an enemy game object. Let me know if anyone else has had this issue or if they know of alternative fixes? Quite surprised how few tutorials are out there covering this topic. Thanks for the contribution Mister Taft!

  • @johncarlosmontejo1162
    @johncarlosmontejo1162 2 ปีที่แล้ว

    Great tutorial for the cutscene it was easy to follow. Just want to ask what if I need multiple dialogues to show to form like a conversation?

  • @baepaperbox4456
    @baepaperbox4456 2 ปีที่แล้ว

    im having this problem [error CS0246: The type or namespace name 'Interactable' could not be found (are you missing a using directive or an assembly reference?)] i think i miss the tutorial where you make interactable class, could you plz tell me the number of the episode when you make one? thank you your video is so helpful!

  • @Untrustedlife
    @Untrustedlife 4 ปีที่แล้ว +1

    Didn't run into that bug at end, not sure if its because my whole game is completely different from yours but maybe its fixed. I couldnt control my character while the cutscene was running at all, it just sorta worked.

  • @Notreal76
    @Notreal76 5 ปีที่แล้ว +3

    My player Jumps after the cutscene back to his start position. Did I forget to set something in the animator or timeline? Your player stays at his end position, without you doing anything in the script or animator. I am a little confuse :)

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +3

      That's the animator part that I talk about in here. it's a bug in timeline. You have to delete and reset the animator.

    • @Notreal76
      @Notreal76 5 ปีที่แล้ว

      Oh, thank you for clarifying :) I must miss that somehow.

  • @otis8252
    @otis8252 3 ปีที่แล้ว +2

    Hm. Unfortunately this is only useful if I wanted a single cutscene in the entire game, that uses exactly 1 line of text. If there is a more dynamic way to do this it is never explained.

    • @Uniquename12345a
      @Uniquename12345a 3 ปีที่แล้ว

      Have you figured another way ?

    • @otis8252
      @otis8252 3 ปีที่แล้ว

      @@Uniquename12345a Using inky

  • @wasapea1905
    @wasapea1905 4 ปีที่แล้ว +4

    This is really nice video!
    However, I don't know how but in my version 2019.2, when I excluded the script in TimelineManager, set the Player's Rigidbody2D to Kinematic, and enabled "Apply Root Motion" flag in the Animator component, everything has run exactly smoothly. The bug you're telling above at 17:30 didn't appear in my case.
    P.s: I'm just a noob here. I've tried to figured the reason why but at the end, it's hopeless to me.
    Hope you to explain my situation... Thanks anw!

    • @brangtoggez6363
      @brangtoggez6363 4 ปีที่แล้ว

      hey brooo, có còn học RPG không :3 kb trao đổi với :v

  • @jaioudev
    @jaioudev 3 ปีที่แล้ว +2

    How to make more multiple different dialogue text in the timeline? Is anyone know how?

    • @Tsukare-cg8bp
      @Tsukare-cg8bp 3 ปีที่แล้ว +1

      Hi! It's really simple, you just have to add another dialog box with the new dialog, don't change it's position and there you go, I hope it helped.
      One question, do you know how to play cutscenes when getting into a trigger area?

    • @jaioudev
      @jaioudev 3 ปีที่แล้ว +2

      @@Tsukare-cg8bp I didn' know yet how to make a trigger , i'm still a begginer ;)

  • @andreyc.p.4549
    @andreyc.p.4549 3 ปีที่แล้ว +1

    22:59 OH, COME ON

  • @UnluckyIAM
    @UnluckyIAM 4 ปีที่แล้ว +3

    Did everything right, but when my timeline cutscene ends, my player cant move, animations dont work as well. All I can do is flipping character thanks to the movement script...

    • @jupsekaz
      @jupsekaz 4 ปีที่แล้ว +5

      Did you watch the video to the end? The video explains how to fix that.

    • @Rdp0300
      @Rdp0300 3 ปีที่แล้ว

      same :

  • @shwoomgloom6763
    @shwoomgloom6763 ปีที่แล้ว

    I'm having an issue where my player always starts in the middle instead of at the set position I put them for the start of the cutscene. Is there a way to fix this so they stop starting in the middle?

  • @walterberterame
    @walterberterame 5 ปีที่แล้ว +1

    Awesome video! Im learning a lot from this serie

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +1

      Thanks. Yes there is. If the animator is on the same object as that script, you can use GetComponent() . If it's on another object you can give that object a tag, and reference it by GameObject object = gameObject.FindWithTag("objectTag").GetComponent()

    • @maninhospider9531
      @maninhospider9531 ปีที่แล้ว

      @@MisterTaftCreates you have a video doing this? will help me a lot, im stuck with this and i dont find a tutorial in anywhere with this function

  • @iv_kjs
    @iv_kjs ปีที่แล้ว

    "Animator is not playing an AnimatorController" i'm having this error, can you help me figured it out?

  • @user-tt3sv7bt7x
    @user-tt3sv7bt7x ปีที่แล้ว

    i have a problem my player character is a child object how to timelines for it specificly

  • @adamantium6400
    @adamantium6400 3 ปีที่แล้ว +1

    Can confirm, 2021 and the animation glitch is not a thing anymore

  • @shanejohn1449
    @shanejohn1449 2 ปีที่แล้ว

    Can you possibly make a video on how you can make an interactive cut scene where you can choose an option

  • @jonathan_de_scareux
    @jonathan_de_scareux 5 ปีที่แล้ว

    Are the patreon tutorials only available to the patreons? Or are you going to upload them to youtube?

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +2

      They are patreon only. The patreon tutorials are voted on and requested by patrons so I like to keep those exclusive to them. As little as a dollar a month can get you access.

  • @thegameblock1991
    @thegameblock1991 3 ปีที่แล้ว

    when i add player object to animation track, nothing happens, it doesnt apear in the spot, it still says "none'. any idea?

  • @MohanABK
    @MohanABK 5 ปีที่แล้ว

    Awesome!

  • @danicicu5334
    @danicicu5334 2 ปีที่แล้ว

    What if I dont need it on awake?

  • @MrGhettoGurke
    @MrGhettoGurke 5 ปีที่แล้ว

    All of it works fine, but now everytime i enter the scene, the cutscene is playing :/ is there a video planned for that issue?

  • @ratchanonploypanich1810
    @ratchanonploypanich1810 3 ปีที่แล้ว +1

    8:46 pls help me. when i pressed record button. it showed message "Null reference exception error" . i'm so confused😥😰(i have already dragged player object into target)

    • @bencollom2513
      @bencollom2513 3 ปีที่แล้ว

      make sure you are in default layout. It's a known bug in Unity

  • @carlosgiusti9792
    @carlosgiusti9792 5 ปีที่แล้ว

    Hi! i did implement the script and have an issue when timeline ends, my character can move but my animations does not work at all, walking animations only show the first key by example(i have exactly the same character and animations you have) , thanks and great tutorial btw. Hoping for a reply!

  • @inouekunlunerouge3795
    @inouekunlunerouge3795 3 ปีที่แล้ว +1

    A little tip : i locked my Timeline window, but it bug, so, don't do it....
    When i locked it, i couldn't add a GameObject in my Tracks.

  • @somerandom9520
    @somerandom9520 4 ปีที่แล้ว +1

    How would you add NPC's and Enemies animator to the script without creating an Animator thing for every single character? Also, how would you get a text UI thingymaBob to change in the timeline. Last, of all, my character positions keep changing from the timeline to the actual game. Does anybody know why this is? I'd appreciate it if anyone could answer any of my questions.

    • @wasapea1905
      @wasapea1905 4 ปีที่แล้ว

      I think you should check the offset first when you record the animation which changes the position of your character.
      Moreover, if you want your character not to reset the position back to the state before the timeline, you should tick the box "Apply root motion" in Player's Animator component and set the Rigidbody2D of your char to Kinematic.
      P.s: Sorry if I made any mistake in my sentence... My English is not very good...

    • @somerandom9520
      @somerandom9520 4 ปีที่แล้ว +1

      thx@@wasapea1905

  • @moosegoose1282
    @moosegoose1282 3 ปีที่แล้ว

    bro can you do tutorial on addressables? All these Timeline and Animations will take up huge storage on mobile :(

  • @pinestark
    @pinestark 5 ปีที่แล้ว

    i have a question regarding the hp of the player. i want to change the hp from other scripts (like a buff system). I would like te have the hp as a private float in the hp script but because it is set as a Floatvalue i cannot change it with code. Any advice for me?

    • @YuriNoirProductions
      @YuriNoirProductions 5 ปีที่แล้ว

      use getter and setter or don't make it private :)

  • @scootermoosegames1005
    @scootermoosegames1005 5 ปีที่แล้ว

    I'm having a really weird issue I can't quite figure out at around 12:48 I have everything set and if I play the animation in the timeline window it works fine. However when I press play on the editor the player jumps to the middle of the screen and then starts the animation? Any idea why that might be happening?

    • @scootermoosegames1005
      @scootermoosegames1005 5 ปีที่แล้ว

      Not sure why but when I went in to adjust it to Linear all of the position values in the Animation Editor were different than what I had set in the Timeline Editor. I adjusted the values manually in the Animation Editor and it works now :thinking:

    • @dacarv
      @dacarv 5 ปีที่แล้ว

      @@scootermoosegames1005 I'm having the same issue but the player jumps to a crazy coordinate in the scene...did you find out how to solve this? If I edit the value in the animation editor itself - it works but its not visual in the scene as the sprite moves to another position

    • @dacarv
      @dacarv 5 ปีที่แล้ว

      @@scootermoosegames1005 I'm having the same issue but the player jumps to a crazy coordinate in the scene...did you find out how to solve this? If I edit the value in the animation editor itself - it works but its not visual in the scene as the sprite moves to another position

    • @celinedrules
      @celinedrules 4 ปีที่แล้ว

      I had the exact same issue. What was causing my issue was the players position was getting reset to 0, 0. On the PlayerPosition scriptablle object, I changed the default/initial value to where the animation should start playing from and everything worked out fine.

  • @alakeshkakati4558
    @alakeshkakati4558 5 ปีที่แล้ว +5

    Please make a cutscene on trigger please 😂

    • @alakeshkakati4558
      @alakeshkakati4558 4 ปีที่แล้ว

      Nevermind, learned it.

    • @mateochilla986
      @mateochilla986 4 ปีที่แล้ว

      @@alakeshkakati4558 How ? I'm interested to learn that too !

    • @alakeshkakati4558
      @alakeshkakati4558 4 ปีที่แล้ว +4

      @@mateochilla986 make an empty game object, and set a box collider covering the entire area, which when entered you want to trigger the cutscene.
      Then attach a script to the object.
      In the script, write a function for OnTriggerEnter2D and in an if statement, check if the object colliding is the "Player" (or whatever you want), and then play the required playableDirector.
      Feel free to ask if any doubt.

    • @mateochilla986
      @mateochilla986 4 ปีที่แล้ว +1

      @@alakeshkakati4558 Thanks a lot for your quick answer, I'll try that as soon as I can. If I ever find difficulties, I'll surely return to you !

    • @mateochilla986
      @mateochilla986 4 ปีที่แล้ว

      @@alakeshkakati4558 Okey, so I managed to get the trigger enter right, It triggers the cutscene but the problem is when I exit the cutscene, I don't get to control my character back. Actually, i'm working with a 3D game so It's not really like on the video :/ I tried to reactivate in the exit trigger the controls of my character but nothing...
      So if you have an answer to that problem feel free to tell me ! Anyways, I'll continue on finding the solution.

  • @neongamer1328
    @neongamer1328 5 ปีที่แล้ว

    Nice video, but are you going to make a video for "on trigger" cutscenes?

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +3

      Yepp, that's planned for wednesday or thursday of this week.

    • @AndresCiambotti
      @AndresCiambotti 4 ปีที่แล้ว

      @@MisterTaftCreates I can't seem to find this video, is it still uploaded or is it Patreon-only? Thanks in advance!

  • @dark_white101
    @dark_white101 5 ปีที่แล้ว

    Can you plz make a video for how to create time health as in candy crush...

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว

      For Unity? Maybe. It would be a self-contained little tutorial, though.

    • @dark_white101
      @dark_white101 5 ปีที่แล้ว

      @@MisterTaftCreates Yep In Unity

  • @Ryokou438
    @Ryokou438 3 ปีที่แล้ว

    I cant start recording why

    • @bencollom2513
      @bencollom2513 3 ปีที่แล้ว

      switch to default layout mode before opening timeline window

  • @danielribeiro2345
    @danielribeiro2345 ปีที่แล้ว

    im using 2022.3

  • @kodiererg
    @kodiererg 4 ปีที่แล้ว

    Isn't working for me. Easier to just script it

    • @MisterTaftCreates
      @MisterTaftCreates  4 ปีที่แล้ว

      Understandable. Timeline is a bit buggy for 2D.

  • @urosd6946
    @urosd6946 5 ปีที่แล้ว +2

    Think you should make series on Udemy and earn money there :)

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +4

      Thanks! When the summer comes I plan on remaking some of my Unity tutorials a bit more polished and posting them there. I kind of consider the public TH-cam version to be a "first draft"

  • @AA-ez9cn
    @AA-ez9cn 4 ปีที่แล้ว +1

    Thank you for making these videos; they're really helpful for learners like me. One suggestion - it looks like you're doing these with no script, which makes them organic and natural most of the time. Occasionally though you go on tangents (such as finding your player prefab) and think out loud about them which fills the learner's receptive ear with things completely irrelevant to what they are trying to learn. For ADHD folks like me, all context and focus is lost and I forget what is going on. These videos could be even more helpful if bits like that (parts irellevant to the learning objective) were edited out. Either way, love these videos and appreciate all your hard work in creating them. Cheers!

  • @travelsizedlions
    @travelsizedlions 3 ปีที่แล้ว

    Hi. I'm from the future. They fixed it. Unfortunately, it was about the only good thing that happened this year.

  • @Riodragon1
    @Riodragon1 5 ปีที่แล้ว +2

    this game in godot comming soon ? xD

    • @MisterTaftCreates
      @MisterTaftCreates  5 ปีที่แล้ว +2

      Hey there! When I finish the current Godot tutorial, I'll open up a poll to see what to do next. I'll make sure to have a zelda-like on there.

  • @Mansitolivesbk
    @Mansitolivesbk 3 ปีที่แล้ว

    hellow i have a one question?

  • @scoopydevy
    @scoopydevy 3 ปีที่แล้ว

    can you teach the same thing except for godot

  • @jansluka7510
    @jansluka7510 4 ปีที่แล้ว

    25 minute long tutorial, that could have been done right under 10 minutes...