Bolt Tutorial - Game AI for Creatures in Unity [Simple State Machines]

  Рет қаралды 16,729

Home Mech

Home Mech

Күн бұрын

Пікірлер: 75
@HomeMech
@HomeMech 2 жыл бұрын
Hi everyone! I have a brand-new AI course on Udemy: www.udemy.com/course/visual-scripting-with-unity
@liormax
@liormax 4 жыл бұрын
this is the best frog tutorial I've seen in my entire life, and I wasn't even looking for it
@lee1davis1
@lee1davis1 2 жыл бұрын
Wow this helped me solve a big problem I was having in my Deer and wolf behavior. Thanks.
@elgatorabioso
@elgatorabioso 4 жыл бұрын
Amazing tutorial! you put so much work into it! tanks
@SnailSpaceWTF
@SnailSpaceWTF 2 жыл бұрын
Great video, and I love your style. Thank you for being.
@HomeMech
@HomeMech 2 жыл бұрын
Aw, that's so nice to hear, thank you! :3
@phillipwebb1104
@phillipwebb1104 Жыл бұрын
Awesome video. Would this work for a 2D top down game too?
@HomeMech
@HomeMech Жыл бұрын
Yes! It will totally work. After you work with it a bit you may want to check out 2D rotation tutorials in C#, I bet you'll understand what to tweak from there even if you can't code. The frog is moving forward from the animation alone so that might be something different with your 2D sprite. I'd suggest using DOTween for that 🐸
@Orhime101
@Orhime101 4 жыл бұрын
Great tutorial! I love your videos, I appreciate the time you took to make this thank you
@HomeMech
@HomeMech 4 жыл бұрын
Thanks Robin! :D
@ashishitD
@ashishitD 3 жыл бұрын
1 critique............plz use root motion for da character.....i know u know root motion cause frog has root motion applied to it......other dan dat......video is awesome and informative
@HomeMech
@HomeMech 3 жыл бұрын
Thank you!! I just realized I didn't pin my comment about this, so I went ahead and did that.
@stigmamax9996
@stigmamax9996 Жыл бұрын
what happens if the frog meets a tree with a collider?
@HomeMech
@HomeMech Жыл бұрын
I believe the animation will override the physics. You'll want to give your frog sight with a raycast to avoid obstacles. 👀🐸There is an animate with physics option here you can try turning on: docs.unity3d.com/Manual/class-Animation.html
@mdaltaf5020
@mdaltaf5020 3 жыл бұрын
Can you please make a third person controller tutorial using bolt
@HomeMech
@HomeMech 3 жыл бұрын
Hi! Thanks for the suggestion. I'll think about it! Btw if you follow the VS and C# tutorials you should be able to figure out most C# tutorials.
@ernestgongora4395
@ernestgongora4395 4 жыл бұрын
Can I use this with other animals such as a deer or wolf?
@HomeMech
@HomeMech 4 жыл бұрын
Yes, this will be a good foundation for other animals. A deer, like the frog, moves fast and turns abruptly. Otherwise, for the slerp, you'll want to do a lower number for the T value (try a Per Second node) and run the ticking part of a timer into the flow so that the rotation is gradual.
@stigmamax9996
@stigmamax9996 Жыл бұрын
I don't use Bolt but Playmaker. Can I use both in my project?
@HomeMech
@HomeMech Жыл бұрын
Yes, you can use visual scripting and Playmaker. Visual scripting can probably communicate with Playmaker too.
@HomeMech
@HomeMech 4 жыл бұрын
Tip #1: If your frog isn't moving, look at the Animator component and toggle "Apply Root Motion." This enables the animations to move the rigidbody. More here: docs.unity3d.com/Manual/RootMotion.html Tip #2: If you are on 2021 the graphs might not come in, go into Project Settings > VisualScripting and "Fix Missing Scripts." Let me know if you have any issues!
@Phoenix_Core
@Phoenix_Core 2 жыл бұрын
are you actually in MN? We should meet up if you are.
@Rokyloreq
@Rokyloreq 3 жыл бұрын
Can you make this but in c#
@HomeMech
@HomeMech 3 жыл бұрын
I have a free game kit on the asset store that has C# state machine AI and much more: kzbin.info/www/bejne/opO4h42HnMuFe6c
@ernestgongora4395
@ernestgongora4395 4 жыл бұрын
Can you make a video like this one but this time making the frog move at random like a wandering AI?
@HomeMech
@HomeMech 3 жыл бұрын
Check the archived Bolt Videos on Unity Learn: learn.unity.com/tutorial/bolt-videos-archived#5ee0b1feedbc2a002072770c the beginning of the third one down will help you with that
@oilbaggcomedy1058
@oilbaggcomedy1058 3 жыл бұрын
Wish you showed how u started
@HomeMech
@HomeMech 3 жыл бұрын
I included the project package, let me know if you have any trouble with it!
@GameDevRepublic
@GameDevRepublic 4 жыл бұрын
Great tutorial.
@GukoSS8
@GukoSS8 4 жыл бұрын
wow this is really cool thanks man :)
@HomeMech
@HomeMech 4 жыл бұрын
Thanks Salem! Let me know if there's something you'd like your creatures to do next ;)
@bguilleminot
@bguilleminot 4 жыл бұрын
Hi, followed the steps but when I play the game the frog wont move, it runs the animations but static in a place, and runs the animations looping without considering the player's distance. I wonder what I would have done wrong
@HomeMech
@HomeMech 4 жыл бұрын
It could be a lot of things. Are you using any different assets from what is in the package?
@bguilleminot
@bguilleminot 4 жыл бұрын
@@HomeMech thanks for answering, I am using the frogs but using other assets. The player is one I've created myself, I tried to do this in a test project (I didn't created a specific project to do this tutotial)
@HomeMech
@HomeMech 4 жыл бұрын
@@bguilleminot Start with the package and assets I've given you. I make them to reduce all the things that could go wrong. Then try doing your own thing. If it doesn't work, you can compare it with what I've given you and see if you can spot what is different. It does seem like you don't have the right player object in the frog's player variable, around 5:20
@bguilleminot
@bguilleminot 4 жыл бұрын
@@HomeMech Hi again, I did as you said, I created a new project and used the same assets, sadly the problem continues. The frog reacts when I approach to it, starts jumping fast but it doesn't move, it stays static in the same place jumping (the rotations work well though). When I move away the player the frog jumps slower but never returns to idle state. I've checked the graph many times comparing with the video but I can't see any mistakes, so don't know what could happen
@HomeMech
@HomeMech 4 жыл бұрын
@@bguilleminot K, thank you, that rules out a lot of variables. I was able to get it to work with my package and the included completed graph (following the Read Me steps). That's good news for me :) First, check that in the transition from Evading to Resting that the branch flow is False to trigger transition (the transitions are slightly different, Resting to Evading happens on True). If ever you want to test whether something is working, search for a "debug log" unit. Then get a "string literal" unit and put it into the message input. There you can type "Frog is safe!" and see that message in the Console window (Window>General>Console). If no message occurs, you are close to finding your issue. Since your frog isn't moving, could you check to see if "Apply Root Motion" is enabled on the frog? It is on the frog, on the Animator component below Controller and Avatar. This enables the frog animations to move the rigidbody on the frog.
@workflowinmind
@workflowinmind 4 жыл бұрын
100th Like ! Thanks for this video.
@HomeMech
@HomeMech 4 жыл бұрын
100th time I get to feel cool, thank you! :D
@MrZero000cool
@MrZero000cool 4 жыл бұрын
thanks so much!
@HomeMech
@HomeMech 4 жыл бұрын
My pleasure! Hope you figured out the day/night cycle :D Feel free to say hi on Discord if you had any trouble (@homemech#7937)
@MrZero000cool
@MrZero000cool 4 жыл бұрын
@@HomeMech
@ppmpyae1152
@ppmpyae1152 4 жыл бұрын
Love it.
@its_puzzled
@its_puzzled 6 ай бұрын
it would be so good if you expand the part with visual scripting, that is important and small size cause this frog is not important at all and just take a space here, it makes so uncomfortable to see the video from usual display and not something like 4k, well may be you just dont care about someone who have no 4k display then it allright could nt see/read anything, went to another videos on youtube, pity true, it was interesting to know frog story
@HomeMech
@HomeMech 5 ай бұрын
Ah, thanks for telling me. Actually, the graph is zoomed in as much as possible, so in the future if I do another UVS video I'll record at a higher resolution so I can zoom in closer without a loss of resolution for normal HD.
@blatou12
@blatou12 3 жыл бұрын
Very Good tutorial, but I felt lost in one thing, how do I make the frog hop further away? I have altered his size and that made him jump further but I don't know how to do it without messing with his size...
@HomeMech
@HomeMech 3 жыл бұрын
Thank you! The frog's movement comes from "root motion," the animation drives the movement. You can look this up in the Unity docs. The easiest way to increase the distance of the hop would be to duplicate the jump animation so that you have an editable version and then try to increase the hop distance on the animation.
@djakademiksschool7793
@djakademiksschool7793 4 жыл бұрын
more more moreeeeeeeeeeeeeeeeeeeeeeee
@HomeMech
@HomeMech 4 жыл бұрын
Coming right up! Next week probably :D
@snootsy31
@snootsy31 4 жыл бұрын
who else came from the toxic frogs unity asset page
@HomeMech
@HomeMech 4 жыл бұрын
My first toxic comment :D
State Machines of DESTRUCTION with Bolt / Unity Visual Scripting
14:42
How to Make a Game in 5 Minutes (Playmaker vs. Bolt)
14:50
David Wehle
Рет қаралды 260 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Super Units! Visual Scripting in Unity! (Bolt)
13:09
Code Monkey
Рет қаралды 47 М.
How To Use Bolt State Machines In Unity - Visual Scripting
12:04
Dapper Dino
Рет қаралды 20 М.
How to Make NPCs/AI Run Away (with examples in Unity)
24:14
Feed My Kids
Рет қаралды 11 М.
(Unity, Bolt visual scripting) 3D Movement Animation w/ Bolt [Tutorial]
20:12
What do I know? - Mr. Boris Roo
Рет қаралды 24 М.
AI Random Wander
13:19
One Wheel Studio
Рет қаралды 13 М.
I Trapped this AI Worm in a Dark Room for 1000 Simulated Years
10:05
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН