The Code Anvil
The Code Anvil
  • 3
  • 95 216
Super Mario 64, Icebergs, and Nonspecific Deterioration
"Players are artists who create their own reality in the game." - Shigeru Miyamoto
All music written by The Code Anvil
มุมมอง: 391

วีดีโอ

How to Make Cutscenes with Timeline -UNITY TUTORIAL-
มุมมอง 90K2 ปีที่แล้ว
In this video we are going to be creating a simple 2D cutscene with fading text, animations, and a transition into the game scene at the end of the cutscene. The methods covered work with 3D cutscenes as well. -LINKS- Music in this video: th-cam.com/video/icwbu-9douY/w-d-xo.html -DESCRIPTION- Hello everybody and welcome to The Code Anvil! This channel focuses on game development specifically wi...
Top Down Movement & Animation -UNITY TUTORIAL-
มุมมอง 5K2 ปีที่แล้ว
In this video we are going to be creating an expandable, physics-based player controller in Unity. It will also be animated but this is not an animator tutorial so I will not go extremely in-depth on that part of it. -LINKS- Music in this video: th-cam.com/video/rJlY1uKL87k/w-d-xo.html GitHub Link: github.com/TheCodeAnvil/Tutorial-Scripts/blob/main/TopDownMovementAndAnimationTutorial.zip -DESCR...

ความคิดเห็น

  • @Voldrim359
    @Voldrim359 14 วันที่ผ่านมา

    My god, i whish i had known this before...

  • @JohnK-r5t
    @JohnK-r5t หลายเดือนก่อน

    2:08

  • @XAndrei1009
    @XAndrei1009 2 หลายเดือนก่อน

    Worst tutorial ever, moving like a crazy man with the mouse and doing settings without explaining anything. Barely learnt something of this "tutorial".

  • @Johan-rm6ec
    @Johan-rm6ec 3 หลายเดือนก่อน

    Music not helping.

  • @daily.modivation
    @daily.modivation 6 หลายเดือนก่อน

    how do i get eht tile map

  • @dalephillips9633
    @dalephillips9633 7 หลายเดือนก่อน

    What a wonderfully well crafted narrative! Also I stayed till the end and noticed you did all your own music, well done! Games and stories are our escape from reality and it’s hard to remember a world that I got lost in more than Mario 66 I mean Mario 64 lol. Thank you for this, it was a fun journey revisiting one of my favorite childhood games. Also to further solidify your point, even after its initial release I am still watching videos of Mario 64!

  • @radioperdida5138
    @radioperdida5138 8 หลายเดือนก่อน

    Welcome back, you're on a good path. Keep 'em coming, new subscriber.

  • @gingerjen6936
    @gingerjen6936 8 หลายเดือนก่อน

    you do not understand modern art at all

  • @Prawcin
    @Prawcin 8 หลายเดือนก่อน

    Undertale...

    • @caloxya4139
      @caloxya4139 8 หลายเดือนก่อน

      oh hey you're the lance guy

    • @Prawcin
      @Prawcin 5 หลายเดือนก่อน

      @@caloxya4139 God save me

  • @osamareema3008
    @osamareema3008 8 หลายเดือนก่อน

    Amaizing! love it❤

  • @calippooo.x
    @calippooo.x 8 หลายเดือนก่อน

    Greah video, great explanation.

  • @AquaTwist_
    @AquaTwist_ 10 หลายเดือนก่อน

    Thank you for this! It's perfect for the RPG I'm making, and it helped me out! :D

  • @Rabit.ngegems119
    @Rabit.ngegems119 ปีที่แล้ว

    Halo kawan saya dari indonesia meski saya tidak paham bahasa kalian tetapi penjelasan yang cukup mudah simple sangat enak dipahami

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

    All is good! Thx mate.

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

    If you want to create a cutscene inside of a current game scene, copying it each time it changes doesn't seem like a good workflow. Why not just have the timeline inside the actual scene and have it disabled until used?

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

    Thank you for the Tutorial! How important is your code in relation to the animation? I couldnt use your code, since I have another one for grid-based movement on my PlayerController and trying to integrate the animation into my code failed completely. I move my player by giving him a PlayerMovePoint to which he is dragged each time you move. Do you have a solution to integrate the animation into this?

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

      So what you'll want to do is you will need to set a bool that is on while the player is actively moving to the PlayerMovePoint and turns off when he arrives. Then you can just set the animator move variable to this bool. If you're having trouble with finding a way to tell if the player is moving, you can try a couple things. If you use the Rigidbody2D component to move him you can check his velocity, if you don't you can check his distance to the PlayerMovePoint with a function like Vector3.Distance. If you're having trouble with this function here's the documentation docs.unity3d.com/ScriptReference/Vector3.Distance.html Thanks for watching and please let me know if you have any other problems.

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

      @@thecodeanvil5779 Thanks for the reply! I will try your method!

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

    This video is handy, albeit a bit fast haha

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

    How were you able to make Unity focus the Camera rather than the Canvas?

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

    PERFECT, thz broo <3

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

    you also moved the image above the text in the canvas hierarchy and didnt mention it......

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

    Content has what you need but the communication can be a bit confusing as you are muttering and talking so quickly sometimes.... for example, the intro you say nice and slowly "we want to make a new scene.....name it cutscene". then you're like in under a second "theninsideofthatscenecreateanewemptysceneobjectandnameittimeline". i needed to play it three times and incrase volume to hear what u muttered and see what u did..... you do this multiple times. try to stay consistent and clear

    • @Скитлс-э4р
      @Скитлс-э4р 11 หลายเดือนก่อน

      Bro I’m not even a native speaker and I got it from the first time, I don’t think it’s the creator’s problem

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

    great video :)

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

    Great explanation!

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

    You REALLY need to slow down talking sometimes, the number of times I had to pause just to hear what you said was insane, truely

    • @Xerithhh
      @Xerithhh 9 หลายเดือนก่อน

      I'm French and it's true that it's a bit complicated to follow sometimes 😂

    • @DivinnysGR
      @DivinnysGR 7 หลายเดือนก่อน

      Im at 2 mins and already paused 20 Times bruhh

    • @CC_-pn2og
      @CC_-pn2og 2 หลายเดือนก่อน

      .5 speed

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

    thanks bro!

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

    I've been looking for how to set idling animation after moving. and this video is very helpful. Thanks

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

    When I press left, right animation happens and that goes the same for up and down, opposite animation. Can you help me?

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

    I can't create a new game object. 0:48

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

    I want to start my cutscene right when the player clicks on "Play" on the menu, how do i do that....? But this is a great tutorial! so clear and helpful!!

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

      you would set the index to 1 with the main menu being 0 so when it loads the next scene, the scene is the cutscene you made. if that makes sense

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

    I have a question. How does this work when a cutscene is triggered in game by walking into a certain area? What does that code look like when the scene is triggered by walking into an area? What about killing the scene activation being triggered again when walking into that area post-scene?

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

      You can set the player character have an "ontriggerenter" (it should pop up when you start typing it) function. Make a plane and set the collider for it to be a trigger and make it so the player walks through it, kinda like a portal. Of course it should cover all possible entrances for the player. You can have multiple of the same type. (or you can mage a sphere collider with the trigger tick box on it in the editor large enough to cover the exits) There you can sort by the trigger tag (make sure to set the tag to the specific trigger you just made). Finally in the body of the trigger functions (which should be in the player script) once it recognises it hit the trigger you can tell it to, disable all current triggers of the same tag, AND save that to your save system(so they don't get loaded in the next time you run the game), AND THEN play the scene you want to play. In large that should cover the most common uses. Not trying to be condescending, but I wanna cover as many bases as I can in one comment, with limited info. Hope it works for you or at least puts you on one of the possible searching paths to solve your querry.

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

    bro thanks i finnaly found it tysm

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

    I've tried this on new input system but I've failed. If anyone knows to do it in new input system I have a question. I tried to write (OnMove / input value/ if(value.isPressed) animator set boll true) but it did give me a error. I gues we cant use if statement or isPressed on OnMove so how do we do it?

    • @dagotur1666
      @dagotur1666 หลายเดือนก่อน

      Hi, did you found solve?

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

    Dude! I almost didn’t watch this video because I didn’t think I could get much valuable information in 7 minutes, but you proved me wrong! Subscribing!

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

      Wow! Thank you so much for the support. It means a ton!

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

      @@thecodeanvil5779 you deserve it

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

    This video is amazing! How do you only have 687 subs!?! Thanks so much, this video is really helpful and easy to follow.

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

    but this does not say anything about diagonal movement. Can you move diagonal or you can't? In case you can move diagonal is there a way to disable it?

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

      By default, this script in this video has diagonal movement. If you want top down movement without diagonal movement, check out another one of my tutorials: th-cam.com/video/HMv__bzsC9s/w-d-xo.html This movement system specifically removes diagonal movement if that is what you are looking for.

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

    well i tried and its a little bit broken. as idle does the up walking anim and when i press the other buttons works but when i stop it does the up walk anim

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

      I'm not sure exactly what your problem is, but it sounds like you need to check your transitions in the animator. From what I understand, it doesn't sound like something I can tell you the steps to fix, but it sounds like it is in the animator. Sorry, if I didn't understand correctly, let me know.

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

    Fun Fact: You used Davinci Resolve to edit the video. (I subscribed!)

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

      Ha ha, impressive. Thanks for the support!

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

    Good tutorial, thanks!

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

    This was so helpful!

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

    Amazing Thank You So Much. Could You Please Me. I Want my Character to Move Upward (Vertically) Straight Constantly and Want to Control him Horizontally (Left and Right). What should I Do. Please help me. Thanks.

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

      You're welcome! This is fairly simple. Just add a new variable called verticalMoveSpeed, and change the line in FixedUpdate() to be rb.velocity = new Vector3(x * moveSpeed, verticalMoveSpeed); Hope this helps! Let me know if you still have a question.

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

    Bruh you deserve more subscriber. Only 590 subs? What were ppl thinking? Your content is gold

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

      Wow, thanks! I appreciate the support; It means a lot.

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

    I dont think counting every second in script the best way. You can use "SIGNAL TRACK" for transition to a next scene. Place the signal Emitter end of the track and call the next scene function from the signal reciever.

    • @AyeshaKhan-jr8vp
      @AyeshaKhan-jr8vp 6 หลายเดือนก่อน

      how to call function i have to write code for this ? could you please help me

    • @ThePancakeJedi
      @ThePancakeJedi หลายเดือนก่อน

      @@AyeshaKhan-jr8vpUse keyframe event and call the method there. Script must be on the gameobject.

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

    easy to understand!

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

    Great stuff! It's sometimes surprisingly difficult to find things explained simply. I'll be following for more good stuff!

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

      Thank you for the support! I'm glad you're finding it helpful.

  • @PK-se2jh
    @PK-se2jh 2 ปีที่แล้ว

    thankyouuu :)

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

      You're welcoooooome! {*} / ) )))) | | ^ ^ | \ | > | \\ V / _((__ | \ / \ | | / \^@^/ \ / \{*} /\U/\/ _| \_ /_/\_\_\

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

    Very helpful! Thank you!

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

    How would I do mid game cutscenes? Would creating multiple timeline game objects and enabling them with a trigger would work?

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

      For cutscenes, I generally switch to a new scene that is set in the game world, but the player has no controls. Then I let the cutscene play out and switch back to the main scene where the player can move. This works well for me, but there are likely some cases in which you would want mid game cutscenes. In these cases just disabling all real-time controllers, begin the timeline and things should work. Hope this helps! If you run into problems, let me know.

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

      @@thecodeanvil5779 thank you alot for the advice and I have done the switch scenes thing and it works great

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

      @@austinwhiteted8231 You're welcome! So glad it is working for you!

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

      @@thecodeanvil5779 my game will have a lot of cutscenes since it's a horror game, and will it be fine to have multiple timelines in one scene, but have them disabled of course

  • @Name-ij6gj
    @Name-ij6gj 2 ปีที่แล้ว

    Your so underrated

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

    Why does my character slowly move downwards and the background moves upwards slowly

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

      By this, do you mean that the background's y position is increasing? If so, that sounds less like an issue with the script and more an issue either in the inspector or somewhere else in your project. Let me know if I am not understanding your problem.

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

      change gravity to 0

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

      @@themonarchrules_0523 Well put. Somehow I didn't even think of that.

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

    Mans grew a lower pitch voice in 2 months