
- 3
- 95 216
The Code Anvil
United States
เข้าร่วมเมื่อ 19 ต.ค. 2020
Hello everybody and welcome to The Code Anvil! This channel focuses on game development specifically with the Unity game engine. I also post some videos on art as well as some videos on my game uploads. I make practical and clean videos to help anyone make any game.
I am active on all my videos ready to help with any problems you may have, so if you are experiencing issues, feel free to let me know.
I also am on itch.io posting games there every so often. When I make and upload a game I post a video on it on my channel. You can get to my itch.io page through the link in the links section.
I am active on all my videos ready to help with any problems you may have, so if you are experiencing issues, feel free to let me know.
I also am on itch.io posting games there every so often. When I make and upload a game I post a video on it on my channel. You can get to my itch.io page through the link in the links section.
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
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...
My god, i whish i had known this before...
2:08
Worst tutorial ever, moving like a crazy man with the mouse and doing settings without explaining anything. Barely learnt something of this "tutorial".
Music not helping.
how do i get eht tile map
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!
Welcome back, you're on a good path. Keep 'em coming, new subscriber.
you do not understand modern art at all
Undertale...
oh hey you're the lance guy
@@caloxya4139 God save me
Amaizing! love it❤
Greah video, great explanation.
Thank you for this! It's perfect for the RPG I'm making, and it helped me out! :D
Halo kawan saya dari indonesia meski saya tidak paham bahasa kalian tetapi penjelasan yang cukup mudah simple sangat enak dipahami
All is good! Thx mate.
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?
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?
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.
@@thecodeanvil5779 Thanks for the reply! I will try your method!
This video is handy, albeit a bit fast haha
How were you able to make Unity focus the Camera rather than the Canvas?
PERFECT, thz broo <3
you also moved the image above the text in the canvas hierarchy and didnt mention it......
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
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
great video :)
Great explanation!
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
I'm French and it's true that it's a bit complicated to follow sometimes 😂
Im at 2 mins and already paused 20 Times bruhh
.5 speed
thanks bro!
I've been looking for how to set idling animation after moving. and this video is very helpful. Thanks
When I press left, right animation happens and that goes the same for up and down, opposite animation. Can you help me?
I can't create a new game object. 0:48
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!!
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
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?
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.
bro thanks i finnaly found it tysm
You're welcome! Happy to help.
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?
Hi, did you found solve?
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!
Wow! Thank you so much for the support. It means a ton!
@@thecodeanvil5779 you deserve it
This video is amazing! How do you only have 687 subs!?! Thanks so much, this video is really helpful and easy to follow.
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?
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.
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
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.
Fun Fact: You used Davinci Resolve to edit the video. (I subscribed!)
Ha ha, impressive. Thanks for the support!
Good tutorial, thanks!
This was so helpful!
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.
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.
Bruh you deserve more subscriber. Only 590 subs? What were ppl thinking? Your content is gold
Wow, thanks! I appreciate the support; It means a lot.
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.
how to call function i have to write code for this ? could you please help me
@@AyeshaKhan-jr8vpUse keyframe event and call the method there. Script must be on the gameobject.
easy to understand!
Wonderful!
Great stuff! It's sometimes surprisingly difficult to find things explained simply. I'll be following for more good stuff!
Thank you for the support! I'm glad you're finding it helpful.
thankyouuu :)
You're welcoooooome! {*} / ) )))) | | ^ ^ | \ | > | \\ V / _((__ | \ / \ | | / \^@^/ \ / \{*} /\U/\/ _| \_ /_/\_\_\
Very helpful! Thank you!
You're welcome! Glad I could help!
How would I do mid game cutscenes? Would creating multiple timeline game objects and enabling them with a trigger would work?
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.
@@thecodeanvil5779 thank you alot for the advice and I have done the switch scenes thing and it works great
@@austinwhiteted8231 You're welcome! So glad it is working for you!
@@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
Your so underrated
Thanks, I appreciate the support!
Why does my character slowly move downwards and the background moves upwards slowly
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.
change gravity to 0
@@themonarchrules_0523 Well put. Somehow I didn't even think of that.
Mans grew a lower pitch voice in 2 months