Simple Enemy AI | Dreams Tutorial

  Рет қаралды 18,612

Aecert Gaming

Aecert Gaming

Күн бұрын

Пікірлер: 110
@roguejaroth4832
@roguejaroth4832 4 жыл бұрын
Great video Aecert! Thanks for making this! It will help me alot with my "lure" state logic!
@Animaja001
@Animaja001 4 жыл бұрын
I'm using this system for a boss battle i'm making and i have to say, this is such a fantastic baseline to work from. It almost reminds me of the GOAP system that some game engines use. I'm a pretty dumb guy with no math skills, but i'm able to iterate on this since its so transparent, and through it i've found a love for creating logic even moreso than creating my usual sculpting/art.
@AecertGaming
@AecertGaming 4 жыл бұрын
I am so happy to hear how this has helped :) I tried really hard to make it easy to understand/easy to build off of What is the goap system?
@Animaja001
@Animaja001 4 жыл бұрын
@@AecertGaming Goal oriented action planning. I'm not completely knowledgable in the process but the idea is, you give the AI goals to achieve like "open door" "search for player" "ambush player from behind" then link them together. Games like F.E.A.R and Alien:Isolation used it best to create smart AI. It's quite similar to how you've set up your AI framework and i love it.
@AecertGaming
@AecertGaming 4 жыл бұрын
@@Animaja001 Ahhhh, thats pretty awesome :D
@deniscoce6379
@deniscoce6379 4 жыл бұрын
thank you, so far the best dreamer for tutorials, do you have anything specific in the pipeline? or a patreon?
@AecertGaming
@AecertGaming 4 жыл бұрын
I have a whole list of tutorials im planning on making :) If you have any requests though please let me know. Also thank you so much I really appreciate it. No patreon but i do stream on twitch!
@Toquer88
@Toquer88 4 жыл бұрын
Yup, my favorite also. He rules 😀
@jamespennington6428
@jamespennington6428 4 жыл бұрын
Can you find a way to give enemys vision? I tried but no matter what I do they can either see through walls or have terrible sight
@AecertGaming
@AecertGaming 4 жыл бұрын
That would be in my advanced enemy ai tutorial ;) you would use a raycast to check whether or not the enemies target is being something
@jamespennington6428
@jamespennington6428 4 жыл бұрын
@@AecertGaming thanks!
@jamespennington6428
@jamespennington6428 4 жыл бұрын
@@AecertGaming umm... can you link it?
@AecertGaming
@AecertGaming 4 жыл бұрын
@@jamespennington6428 Doesnt exist yet lmao
@jamespennington6428
@jamespennington6428 4 жыл бұрын
@@AecertGaming Ok lol
@vikramaditya1364
@vikramaditya1364 3 жыл бұрын
I love your character ❣️
@OliVia-ss6qc
@OliVia-ss6qc 3 жыл бұрын
Cool! I will try that in my creations!
@retrok4621
@retrok4621 2 жыл бұрын
This really helped me!
@mynewchanel
@mynewchanel 2 жыл бұрын
Great tutorial. Makes sense. Cant wait to try this out
@champion4906
@champion4906 3 жыл бұрын
thanks im making a little shark survival game for my little brother
@jamespennington6428
@jamespennington6428 3 жыл бұрын
In my game when the player is “in sight” then it stand still and starts looking around, it players in view then the animation get interrupted and starts chasing the player, but if the animation ends and no player in sight then it starts roaming again, *what do I need to change?*
@AecertGaming
@AecertGaming 3 жыл бұрын
Sorry so is that what you want to happen?
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 3 жыл бұрын
This annihilates blueprints and bolt.
@AecertGaming
@AecertGaming 3 жыл бұрын
It really does, except for the fact there are no strings or arrays :P
@RES_Hamm
@RES_Hamm 4 жыл бұрын
I have a problem, doing an animation when the character is killed I animate a flip but the animation teleport to the place where I create the animation. Can someone please tell me why this happens?
@AecertGaming
@AecertGaming 4 жыл бұрын
Yup so you need to animate while scoped into the character. You can NOT animate the position of the entire character or it will snap back like you said. So you would want to scope into the character, double tap x on the pelvis to select all items, then rotate to do the flip. Do not animate without being scoped in.
@RES_Hamm
@RES_Hamm 4 жыл бұрын
@@AecertGamingThanks I did not expect an answer so soon. I will continue working on my project
@lukenategamesyt1844
@lukenategamesyt1844 3 жыл бұрын
What is the flag gadget and off button gadgets
@AecertGaming
@AecertGaming 3 жыл бұрын
Can you give me a timestamp?
@nathanbustamante1525
@nathanbustamante1525 3 жыл бұрын
The flag is a microchip with a custom icon.
@alishavillarreal9310
@alishavillarreal9310 3 жыл бұрын
I'm having trouble with the roaming part of this so far. Would it have anything to do with the fact that I'm using a sculpture instead of a puppet? My enemy sculpture floats off into the sky in circles when I turn on "local space" in the mover and rotators. If I have them off, it simply slides to the right of the screen indefinitely. I suspect it has something to do with the values on x,y, and z strength and dampening. I wish you showed those pages and their settings for each mover and rotator. Although perhaps you kept them at default for all I know and maybe that works for the puppet. Just guessing of course. Any thoughts?
@AecertGaming
@AecertGaming 3 жыл бұрын
You might need some logic to keep it snapped to the ground, oh and maybe make the follower strength 0 percent in y? Also the scene is remixable so you can look at the logic yourself 🙂
@alishavillarreal9310
@alishavillarreal9310 3 жыл бұрын
@@AecertGaming Yes, that's true, I should check the scene directly. I actually did turn all the y axis to 0 in the rotators, mover, and even follower but it would still occur, just somewhat differently (weird diagonal right liftoff). I primarily want an effective roam and chase, since I plan on damage occurring from impact. I wonder if I could achieve that with the follower gadget alone.
@AecertGaming
@AecertGaming 3 жыл бұрын
@@alishavillarreal9310 You probably could make it work with just a follower and a rocket rotator tbh. Also if you want to collab me I can take a look and try to get it working for ya :D
@alishavillarreal9310
@alishavillarreal9310 3 жыл бұрын
@@AecertGaming Thanks so much! I'll try out your suggestion and another idea I've gotten. If I can't get it to work, the collab offer would be great :D
@ConstantinPot
@ConstantinPot 2 жыл бұрын
Acert thankyou very much for the guide here. Very helpful. I have a question though, How do you set an area where the NPC can roam in? I am asking this as I am trying to have my NPC roam in a roam and they keep getting stuck walking into a wall.
@AecertGaming
@AecertGaming 2 жыл бұрын
Hmmm. What if you placed a tag down, and when the npc got too far from the tag they walked straight at it for a bit before randomly roaming again?
@ConstantinPot
@ConstantinPot 2 жыл бұрын
@@AecertGaming I fixed the issue. The walls were too thin and parts of the puppet was clipping through the walls and getting them in. Fixed it with an invisible wall so they also do not leave the area I want them to roam around. They still hit the wall and walk into it for a bit but eventually they get rotated.
@angelarodriguez9775
@angelarodriguez9775 3 жыл бұрын
When the enemy attacks i need to move back a little for it to attack again is there any way to fix that?
@AecertGaming
@AecertGaming 3 жыл бұрын
It sounds like the attack isn't looping
@angelarodriguez9775
@angelarodriguez9775 3 жыл бұрын
@@AecertGaming exactly, what happens is that it attacks once and goes back into chasing but it does not attack again even though I am inside it's area and it is on chasing state
@AecertGaming
@AecertGaming 3 жыл бұрын
@@angelarodriguez9775 if I remember correctly I have it coded to leave the attack state after an attack, but it should be going right back into the attack state. Why isn't it?
@aussiebattler963
@aussiebattler963 3 жыл бұрын
Hey man love the videos. Got this system working in the game and I’m just trying to expand on it a little bit. Quick couple questions, I’m developing some enemies with ranged attacks and I can’t figure out how to make projectiles track the player character vertically when I jump. I tried a look at rotator during the attack timeline and using a follower isn’t what I want. Also would you Mind elaborating on how to add more attacks at varying ranges and conditions?
@AecertGaming
@AecertGaming 3 жыл бұрын
So a follower combined with a look at rotator should work... Maybe instead of a look at rotator use a rocket rotator? Either way, what is it doing that isn't what you want? For more attacks at varying ranges you'll want to add more states to the state machine. It will get pretty complex the more ranges and conditions you add but still very possible. I should make a follow up video for this
@aussiebattler963
@aussiebattler963 3 жыл бұрын
And attach that to the enemy projectile or the enemy itself? I’ve tried using a follower on the projectile but that gives it homing properties which isn’t realistic for the projectile, I just want the enemy to be able to shoot towards the player while I’m airborne. As for the attacks, I want the enemy to be able to perform unique attacks while the player is going from attack state back to chase as well as just multiple other attacks likes grenades for ranged enemies. Appreciate the help heaps though I subbed, a follower up would be sweet!
@AecertGaming
@AecertGaming 3 жыл бұрын
@@aussiebattler963 oh lol you don't want it homing. Ok so you want to put the emitter on a cube. Then make that cube face the target. Although I think there's a way to change the emit direction? Though it requires some math. As for the AI, that's something you need to figure out, this video should give you a decent foundation though.ai can be tough but it's important to learn. The state machine pattern I use in this video should be a good starting point
@thedankofficialshow7747
@thedankofficialshow7747 4 жыл бұрын
Hey man I implemented this into my game but the roaming state doesn't seem to work properly and will follow me regardless of range. It seems to go into roaming state and will move according to roaming speed but it will always follow me. Also can't get the attack to alone to play. Thanks, love the vids
@AecertGaming
@AecertGaming 4 жыл бұрын
Ok so there are two things to check. One, is the state changing correctly but the follower is just always on? Two, is the state just not changing? It is probably the latter. Look into the logic that changes the state. Why isn't it going off? What is happening with the attack?
@danorganplayer
@danorganplayer 3 жыл бұрын
Hey great video. Love your tutorials. Do you currently have any tutorials on damage effects? Like let's say blood when shot ( zombies ) or when hit by sword slash...etc.
@AecertGaming
@AecertGaming 3 жыл бұрын
hmmm, i do not yet. Thats a great idea for one though. The hardest part of that is figuring out where to spawn the actual effect. If it doesnt have to be perfect then its pretty easy, just spawn an effect when they take damage. If the position does matter though... Im not sure tbh. Maybe use a laser scope to get the position of the hit?
@mynewchanel
@mynewchanel 2 жыл бұрын
My guess is you could put a tag in your weapon or projectile. Then have a trigger zone on the zombie that, when detecting that tag, turns on an effects painting and health modifier attached to the puppet
@KidouKenshi22
@KidouKenshi22 3 жыл бұрын
And if I want a close range and long range state? How do l do it ?
@AecertGaming
@AecertGaming 3 жыл бұрын
I would recommend just figuring that out within the attacking state, i dont think you need a new state for that unless close range and long range are quite different. If they are just attacks, it can all be handled within the attacking state.
@KidouKenshi22
@KidouKenshi22 3 жыл бұрын
@@AecertGaming thanks l will see if l can figure it out
@delck4402
@delck4402 3 жыл бұрын
On 10:59 how do I plug it the Timeline to the on and off switch?
@AecertGaming
@AecertGaming 3 жыл бұрын
The keyframe is turning the switch on
@QTM-Zeno
@QTM-Zeno 3 жыл бұрын
How do you make the mover face the direction which the enemy is facing, because mine is rotating but it always walks in the the same direction
@AecertGaming
@AecertGaming 3 жыл бұрын
Set the mover to local!
@swanyh6794
@swanyh6794 3 жыл бұрын
Sir how can I connect the keyframe and switch? My selector doesn't work too.
@AecertGaming
@AecertGaming 3 жыл бұрын
Animate the keyframe, then power on the switch. To duplicate it just copy and paste the animated keyframe.
@deniscoce6379
@deniscoce6379 4 жыл бұрын
how to make a level that you need to complete a certain task before the timer runs out? if you want i can explain my current set up, but it will be a lengthy comment, i managed to make it work if you complete the task but "game over" screen wont work when timer runs out...
@AecertGaming
@AecertGaming 4 жыл бұрын
how are you checking when the timer runs out?
@deniscoce6379
@deniscoce6379 4 жыл бұрын
@@AecertGaming i have no idea how to do that
@AecertGaming
@AecertGaming 4 жыл бұрын
@@deniscoce6379 the timer has an output called "timer finished", when that outputs a signal the timer is finished
@deniscoce6379
@deniscoce6379 4 жыл бұрын
@@AecertGaming i have sent you 2 of my creations, if you have time please debug them: first is rideaable mount that rides the mount but not as quite you have made yours in tutorial, and other is a timer gadget that runs out... if you have time check them out and help me :)
@dogotube3668
@dogotube3668 3 жыл бұрын
Iam sadened by this video and after following the steps the (deluxe) puppet walked sideways and did follow but did not attack Edit: it did walk toward me but that was part of the code already in the deluxe puppet.
@AecertGaming
@AecertGaming 3 жыл бұрын
Is it entering the attack state? You can check by pausing the game and going into the logic when it is supposed to enter the state.
@dogotube3668
@dogotube3668 3 жыл бұрын
@@AecertGaming thanks for to advice I’ll try it tomorrow.
@dogotube3668
@dogotube3668 3 жыл бұрын
@@AecertGaming it can’t enter the attack state because it walks sideways but Iam pretty sure this logic doesn’t work with deluxe puppets☹️.
@Dodo_door
@Dodo_door 2 жыл бұрын
Do I have to use a puppet
@AecertGaming
@AecertGaming 2 жыл бұрын
Ofcourse not!
@gingerninja7701
@gingerninja7701 Жыл бұрын
Terrible tutorial how did you get the state controller micro chip to be that’s big?
@isthisameme3336
@isthisameme3336 3 жыл бұрын
Thank you now I can do my boss fight
@SpiceDiceGame
@SpiceDiceGame 5 ай бұрын
Loved the video. Super helpful, but my guy keeps gyrating. I need some help.
@fatiyahe
@fatiyahe 3 жыл бұрын
The follower wont follow the player
@AecertGaming
@AecertGaming 3 жыл бұрын
There are a couple reasons that could happen. If i were you, I would take the follower and just make it always on and make sure that works.
@SuperDupTNT
@SuperDupTNT 3 жыл бұрын
man next time use fin from adventure time
@AecertGaming
@AecertGaming 3 жыл бұрын
I think using assets like that for my tutorials would make more people click... Not a bad idea :D
@SuperDupTNT
@SuperDupTNT 3 жыл бұрын
@@AecertGaming your welcome
@baracapy3340
@baracapy3340 3 жыл бұрын
for some reason my enemy just flies into the distance
@AecertGaming
@AecertGaming 3 жыл бұрын
Lmao. Want to post a video of it in my discord so we can try to help you out?
@baracapy3340
@baracapy3340 3 жыл бұрын
i decided i wanted him to hide in the side of the wall and if your to close he runs out and attacks you although it was funny when he was infinitely flying off
@AecertGaming
@AecertGaming 3 жыл бұрын
@@baracapy3340 Loool, probably a physics bug?
@baracapy3340
@baracapy3340 3 жыл бұрын
i didn't think Aecert himself would reply because this video is from 2020
@AecertGaming
@AecertGaming 3 жыл бұрын
@@baracapy3340 I see all the comments ;)
@JerzyPlayzGamez
@JerzyPlayzGamez 4 жыл бұрын
AI video
@edenbwicey7250
@edenbwicey7250 3 жыл бұрын
Cant you just make a tutorial where you show us step by step you making it
@edenbwicey7250
@edenbwicey7250 3 жыл бұрын
Or we won't learn! You just showed us your logic and told us to copy
@edenbwicey7250
@edenbwicey7250 3 жыл бұрын
Really unclear!
@AecertGaming
@AecertGaming 3 жыл бұрын
@@edenbwicey7250 What exactly is unclear? The reason I do it this way is because showing me building it would take too long.
@edenbwicey7250
@edenbwicey7250 3 жыл бұрын
@@AecertGaming I think I may of come off a but rude, sorry! Maybe you could make it into a series or something, after all, you are an amazing @dreams creator! There aren't many tutorials out here, that are in depth I mean! I think if you were to do it, that would be amazing!!!! 😃
@MythxuaBurgerKun_69420
@MythxuaBurgerKun_69420 Жыл бұрын
the exact one i wanted which can't be provided by other bozos.....
@fuseshot7983
@fuseshot7983 3 жыл бұрын
This didn't work and I followed every thing
@AecertGaming
@AecertGaming 3 жыл бұрын
I would recommend checking out the remixable scene in the description and comparing it to what you have. Also try posting in my discord, I or someone else will be able to help you!
@jamespennington6428
@jamespennington6428 4 жыл бұрын
It says there's only 20 comments and I see 6, what's going on KZbin?
@SuperSpindasher1991
@SuperSpindasher1991 4 жыл бұрын
It’s counting replies. Stop focusing on KZbin’s inconsistencies and stay on the topic of the video lol
@metroboomin6084
@metroboomin6084 2 жыл бұрын
@@SuperSpindasher1991 for real
Following A Path | Dreams Tutorial
16:03
Aecert Gaming
Рет қаралды 4,4 М.
How To Add Weapon Trails To Your Attacks! | Dreams Tutorial
7:43
Aecert Gaming
Рет қаралды 6 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Give Your Character A Dash | Dreams Tutorial
7:06
Aecert Gaming
Рет қаралды 10 М.
Dreams (PS4) Tutorial - Wall Jump/Climb
12:10
MrWooshie
Рет қаралды 14 М.
Dreams PS4/PS5: How To Make An Object Pick up Mechanic
25:39
Chris Animates
Рет қаралды 9 М.
MAKING AN ENEMY PUPPET AI - Short Circuits - Dreams PS4
21:27
JimmyJules153
Рет қаралды 21 М.
Fractal Block World: A Game That's Bigger Than The Universe Itself
16:35
Combo Attack Logic System | Dreams Tutorial
9:35
Aecert Gaming
Рет қаралды 6 М.
Making Music in Dreams (PS4)
13:00
Levi Niha
Рет қаралды 246 М.
Dreams PS4: How to Make a Weapon Equip/Unequip System TUTORIAL
13:00
Chris Animates
Рет қаралды 31 М.
Simple Puppet Melee Attack Logic in DreamsPS4
17:22
Easy Dreams Cult
Рет қаралды 4,1 М.