Obstacle Avoidance - Delivery Drone with Finite State Machines in Roblox #2
HTML-код
- Опубликовано: 8 сен 2024
- In the second installment of making a drone as an excuse to learn finite state machines, we make the "dropping" and "avoiding" state. Hope you enjoy!
Copy the game to see the code: www.roblox.com...
Previous Video: • Creating an Intelligen...
Socials:
- Discord Server: / discord
- Twitter: / b_ricey763
Popular Playlists:
- Roblox Scripting: bit.ly/35Nz7Is
- Roblox Showcases: bit.ly/2LVIPS2
- Object Oriented Programming Roblox: bit.ly/2XQfWcG
It's just wonderful to look at this code, so beautiful! So little code makes such a great thing! I absolutely love it!!! Just thinking about it, very useful! I will definitely use State Machines for my project!
you can make a tycoon about this like a delivery company that uses drones, you can get better and smarter drones it would be cool
this notification was the highlight of my day
Nice
thanks for this, i'd only heard of state machines when watching videos for unity projects. I thought it may have been complicated, but you explained it very clearly and made it easy to understand. Currently, my AI uses a bunch of functions and ugly checks, but I'll gladly be reworking my systems to use state machines. Super educational, great content as always :3
Thank you so much! A lot of this stuff can get overly complicated for no reason especially when using strictly object oriented languages like C#, but luau is so versatile it makes stuff like this easy -- just be careful, because with that versatility comes hard to find bugs.
That looks pretty nice. Thanks for your work. Love it.
Very good video, keep doing good work. I subbed and liked your video.
All your videos are awesome
hi, it turned out a great video, maybe you will make a new feature in roblox, they are cool, but incomprehensible Block cast,Spherecast
9:38 yeah you would like it more clear
Bro, how to make cooldown open door. This tutorial real need
It's cool, but I would like to ask, how to change it so that it will move as long as it senses any object?
Raycasting?
I have a question, wasn't a better way for performance to put local function instead of function? Sorry if a im wrong.
Hi, not sure if you still need an answer after a month.. but actually making this function local will cause a syntax error, because functions used for Finite State Machine contained inside of a table. If functions where outside of table, then yes putting local before functions will be a little faster.
So, if I understand right, you have to put parameters, to use local function? Anyways thank you.
heyo
27th person here 🔥
ai drone?
still not ai
It's not ML but its still artificial intelligence in some sense -- being able to detect stimuli in one's environment and respond accordingly
@@BRicey so if my raycast hits a part and I print out "not ai" then I can consider that system to be ai since it does detect something and it does respond accordingly
@@refusalstudios Sorry to bump in, but AI can range from simple to highly complex depending on how it's designed. At its core, the "intelligence" in AI refers to its ability to react and calculate based on specific rules. One example of a basic AI system involves the use of if statements to guide decision making. Which you can see in the video.
@@amthuisreal so what if I check if my raycast hit a red, blue, or green block, it's still guiding decision making
@@refusalstudios Just as you structured your sentence, saying "if my raycast hit a red, blue or green block" you would have 3 things you're checking. So yes that is guided decision making.