The Trick I Used to Make Combat Fun! | Devlog

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 2,1 тис.

  • @GameEndeavor
    @GameEndeavor  3 роки тому +702

    NOTE: I'm not using this as a replacement for path finding. The purpose of this is to control how the AI behaves in its local environment. ie avoid clumping together, strafe the player, flee from the player but don't get stuck on walls. NOT get from point a to point b.
    The fact that it can avoid simple obstacles is an emergent behavior that came about naturally from this system, but not the primary way of avoiding them. Without proper path finding, the ai will get stuck if there is a wall between it and its target. However, you can combine this with a pathfinder, if you have it seek along the path instead of directly at its target. :)
    Follow the project on Kickstarter to get notified when it launches:
    www.kickstarter.com/projects/gameendeavor/zatcd

    • @nlaps
      @nlaps 3 роки тому +11

      Hey man! I see that this video blew up congrats!
      When can I expect the next epesoide?

    • @GameEndeavor
      @GameEndeavor  3 роки тому +16

      @@nlaps Hopefully soon. I've been focusing all of my attention on the demo that's expected to release in a couple of weeks. Once things get back to normal though I plan to start uploading again. :)

    • @kwamenaplays5899
      @kwamenaplays5899 3 роки тому +3

      I love it

    • @inik4us
      @inik4us 3 роки тому +2

      When you apply the shaping function, what serves as the normal? Normalized velocity vector?

    • @Soul.game.
      @Soul.game. 3 роки тому +2

      How I want to understand you, but I don't know English)

  • @acutedog9189
    @acutedog9189 4 роки тому +2293

    I have literally no idea what you're talking about, and I still love it

    • @GameEndeavor
      @GameEndeavor  4 роки тому +174

      lol, been getting that a lot. I had hoped to get it across better, but so long as y'all are enjoying it. xD

    • @aweguy3171
      @aweguy3171 3 роки тому +17

      Same here.

    • @andrewknauss6106
      @andrewknauss6106 3 роки тому +27

      ​@@GameEndeavor​This is such a great idea! I've been trying to figure out a good way to do this for a while and the weighting system is so elegant and open to "artistic customization." I would definitely buy this if you made it a Unity asset. I bet the weights could also be trained by an AI too.

    • @CourtFool
      @CourtFool 3 роки тому +4

      Video Translation: skelity

    • @skenda
      @skenda 3 роки тому +2

      Hello everyone, I am new here!

  • @grrr_lef
    @grrr_lef 3 роки тому +4276

    Maybe keep the "gets stuck in a corner" pattern for some enemies and give them a "panic" modifier to their appearance. Stupid behaviour in stressful situations is not unrealistic.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1005

      Someone had suggested something similar in my Discord recently. I will likely implement something like that at some point.

    • @Ghorda9
      @Ghorda9 3 роки тому +158

      @@GameEndeavor or have them ignore the weights when stuck like that and have a "flight" response.

    • @Zadamanim
      @Zadamanim 3 роки тому +336

      @@GameEndeavor A cowering animation when they get cornered would add a lot of personality to an enemy type, it could also be good for a gimmicky enemy type that you need to back them up into lava to remove their armor, for example.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +190

      Agreed. Could be a lot of fun. :) I have a note for it.

    • @LeGiiTxKiDDs
      @LeGiiTxKiDDs 3 роки тому +43

      Seriously XD that littleguy that got stuck looked like it would panic if cornered

  • @vittosito381
    @vittosito381 3 роки тому +143

    I've been tricked into learning math

  • @alexnoman1498
    @alexnoman1498 3 роки тому +445

    I remember vividly a full-scale battle between sentient hostile creatures in the first zone of Van Helsing I, redcoats against werewolves. It stuck with me ever since. It's unexpected and makes you feel less destined and more like a piece on a larger board. I recommend you play with that discovery!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +68

      Oh that's really nice. I have something like that planned actually. I don't know if it's that interesting, but you have inspired me to play more into that, so thank you. :)

    • @Micolash_is_behind_you
      @Micolash_is_behind_you 3 роки тому +4

      is that the incredible adventures of van helsing?

    • @alix6xgorg839
      @alix6xgorg839 10 місяців тому +1

      Reminds me of that battle between demi-humans and soldiers of Godrick in Elden Ring.

  • @Saturn2888
    @Saturn2888 3 роки тому +301

    "I spent an hour fighting skeletons" oh man... I remember those days. You implement something and enjoy it so much just to see it working. It's also why I've logged more hours in my own game on Steam than any other game I own.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +71

      Not me, a tester. Which imo is so much better, lol. Means someone other than myself loved the combat. That's when I knew I had something. :)

    • @Saturn2888
      @Saturn2888 3 роки тому +29

      @@GameEndeavor I definitely had fans put way more hour in the game than I did. Hired one even to make official content!

    • @joelkronqvist6089
      @joelkronqvist6089 3 роки тому +23

      Haha, I have a small puzzle-roguelike under development, but I have still just the structure of the engine, not even player movement. But when I added animations to doors I couldn't stop clicking them happily open and closed again😂

    • @ahmettcavus
      @ahmettcavus 3 роки тому +1

      Saturn2888 What is the name of your game?

    • @channelnamegoeshere4707
      @channelnamegoeshere4707 3 роки тому +1

      dude facts I have so much time logged in my own games

  • @RugbugRedfern
    @RugbugRedfern 4 роки тому +806

    Holy crap those enemy battles look amazing. I'd love to stumble across some enemies fighting randomly and help out a side!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +109

      That is exactly the intent of that mechanic. The necromancer's skelly army affects more than just the player. :)

    • @Volvary
      @Volvary 3 роки тому +27

      Imagine wandering to a forest, seeing a bunch of skellies wandering about and suddenly, bam! 3-4 panthers jumping out of the shadows for a quick treat.

    • @ninjireal
      @ninjireal 3 роки тому +18

      @@GameEndeavor Maybe also make friendly fire on for enemies default? In Minecraft, let’s say a zombie chasing you is in front of a skeleton. That skeleton is gonna aim for you, but if the zombies in the way it’ll actually hit it and the zombie will start attacking back. Dunno if you’ll make that a feature, but have at it. I’d also recommend that if a enemy is fighting against another group with no allies, it’ll start running away.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +23

      @@ninjireal I'll consider it because it is fun and useful in Minecraft, but I'm not sure I want to take that route. I plan to have you engage with more enemies at one time than Minecraft, and the enemies have broader attacks. So it would be more difficult to pull off for me. In minecraft you can start a whole battle by just being near a handful of enemies, where that will be the normal for Zoe and the Cursed Dreamer.

    • @archerman6822
      @archerman6822 3 роки тому +4

      @@GameEndeavor What if you could be attacked by two factions that are neutral to each other (skelly and spiders for this example?) so a member of the same faction wouldn't trigger friendly fire, but hitting entities of a different faction could trigger in-fighting
      Example:
      You are in a forest, skeletons and spiders are neutral to each other. they both attack you. skeleton shoot at other skeletons and they don't react. Skeleton shoot a spider. this makes the spider angry at the skeleton and they start fighting each others, while still trying to get you

  • @mondobe
    @mondobe 4 роки тому +1783

    That’s a pretty complex AI system, glad it works!

    • @GameEndeavor
      @GameEndeavor  4 роки тому +131

      Thanks. :) It's a major improvement for sure.

    • @tralavala9808
      @tralavala9808 3 роки тому +63

      Looks like more advanced than that one from cyberpunk ;p

    • @techtiger2558
      @techtiger2558 3 роки тому +10

      You call this complex!? You haven't seen true AI then. Lol...

    • @mondobe
      @mondobe 3 роки тому +87

      @@techtiger2558 Actually, I use traditional artificial intelligence regularly, as you probably do as well, and while that is impressive in its own right, it’s still pretty tough to hard-code an AI like this and implement it into a game smoothly.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +70

      @@techtiger2558 I've been telling people that it's a lot easier than they would think. I didn't hammer on it here though because I didn't want to come across as insufferable, but thanks for stepping up.

  • @danteleonel9047
    @danteleonel9047 3 роки тому +322

    One thing that could make the Enemies look more convincing in their environment, is that they could probably have a “environment interaction animation” such as the seed enemies eating the grass, playing around. Or the skeletons looking around suspiciously, or their arms fall of and they grab it back. Something that adds flavor to them and would make the ambience feel more natural and lived in.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +108

      Indeed. I'd love to do fun little things like that once I get to the polish phase. I love the skellies arms falling off idea, lol.

    • @y.z.6517
      @y.z.6517 3 роки тому +26

      @@GameEndeavor When a skelly's arm falls off, that's the best moment to get out of ambush and attack?

    • @GameEndeavor
      @GameEndeavor  3 роки тому +51

      lol, maybe. Would have to test if that would encourage waiting. However it would be hilarious if you spooked it and it took off running because it couldn't defend itself. Maybe trying to get back to its arm while avoiding the player.

    • @y.z.6517
      @y.z.6517 3 роки тому +14

      @@GameEndeavor Skelly's Arm can be a kind of trophy, but that attracts skellies' night assault.

    • @y.z.6517
      @y.z.6517 3 роки тому +13

      @@GameEndeavor Skellies use their arms like gloves. They only take arms off, when they are at home and comfortable. That means only 1 will put off his arm, when at least 5 of them are together. That would discourage waiting.

  • @uheartbeast
    @uheartbeast 3 роки тому +351

    7:21 holy smokes that is awesome haha

    • @GameEndeavor
      @GameEndeavor  3 роки тому +44

      Thank you! I'm stoked for this. I've been racking my head trying to figure out how to do the pet system and party members. Now I know I can and make it awesome! :D

  • @NilesBlackX
    @NilesBlackX 3 роки тому +219

    2:45 "subliminally clicking blue thumbs" is pretty clever

    • @GameEndeavor
      @GameEndeavor  3 роки тому +22

      I can be a UA-camr sometimes. xD

    • @LeGiiTxKiDDs
      @LeGiiTxKiDDs 3 роки тому +4

      I would have forgot to click

    • @charliefranklin8523
      @charliefranklin8523 3 роки тому +6

      holy fuck I didn't notice that he said that at all, it was literally subliminal

    • @GameEndeavor
      @GameEndeavor  3 роки тому +6

      @@charliefranklin8523 oof, I didn't expect it to actually be subliminal. ._.

    • @JasonWelch
      @JasonWelch 3 роки тому +2

      I caught that, read your comment, and then mindlessly clicked the blue thumb.

  • @bagandtag4391
    @bagandtag4391 4 роки тому +351

    This AI looks smooth AF. I tried to make something like this a while ago and failed miserably. But I'm feeling inspired to try again now.

    • @GameEndeavor
      @GameEndeavor  4 роки тому +59

      You should, it's a lot of fun. :) This here is the culmination of about two years of attempts for me. Periodically I'll try and improve on my previous attempts and this was my latest effort.

    • @romilgoel4191
      @romilgoel4191 3 роки тому +5

      Hello.
      I am 19 and I wanna start this Game Development stuff..
      I know python.
      Should I just write whole thing using pygame or learn some another Language/Platorm ??
      Please Help. 🥺

    • @GameEndeavor
      @GameEndeavor  3 роки тому +9

      I've never used pygame so I can't say. Try it and see what you think. :) So long as it works and you understand it. That's the important bit starting out.

    • @romilgoel4191
      @romilgoel4191 3 роки тому +3

      @@GameEndeavor wow.. thanks for replying.
      What platform/language are most recommended ?
      Which one do you use ? 😗

    • @GameEndeavor
      @GameEndeavor  3 роки тому +13

      @@romilgoel4191 Everyone has their own recommended, so it depends on the person. I use Godot, which you may like as its language is based on python, and imo it's one of the more beginner friendly engines I've used. Yet very powerful once you master it.

  • @Mewseeker
    @Mewseeker 3 роки тому +1377

    Imagine this situation:
    Enemies start to fight each others.
    "Awesome!"
    Enemies start powering up as they kill each others
    "Oh no!"

    • @GameEndeavor
      @GameEndeavor  3 роки тому +415

      lol, an enemy leveling system? That'd be funny. xD

    • @Mewseeker
      @Mewseeker 3 роки тому +108

      @@GameEndeavor Or just a buff system. Just something to encourage players being a bit more active. :P

    • @reaganharder1480
      @reaganharder1480 3 роки тому +80

      @@GameEndeavor Funny perhaps, but that could actually be great. Definitely could encourage players to be more active. Just then need to be sure the enemies don't spawn in way too early and have ages to fight and level up before you ever see them.

    • @lIIelIl
      @lIIelIl 3 роки тому +9

      ever heard of the abyss watchers?

    • @patrickrocheleau8185
      @patrickrocheleau8185 3 роки тому +21

      Or goliaths from borderlands, though you had to shoot there helmet off first anyway, then kinda feed it weaker enemies as it chased you around untill you felt like killing it

  • @ludosgd
    @ludosgd 4 роки тому +55

    YEEESSSSSSS NEW GAME ENDEAVOR DEVLOG
    This combat looks SO good. Thank you so much for sharing your progress, all these devlogs are super insightful!

    • @GameEndeavor
      @GameEndeavor  4 роки тому +7

      Thanks for watching them, Ludos! I'm in love with the combat, lol. I didn't expect it to turn out this fun.

    • @ludosgd
      @ludosgd 4 роки тому +1

      @@GameEndeavor Can't wait to try it out! :D

  • @marksmod
    @marksmod 3 роки тому +68

    The mathematics pays off in the end. This looks good

    • @GameEndeavor
      @GameEndeavor  3 роки тому +11

      Math was my favorite subject, so indeed. :)

  • @actually_a_sign3954
    @actually_a_sign3954 3 роки тому +31

    That skelly newton's cradle at the beginning was hilarious.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +12

      You are the first person to even remark on it. Here I was thinking nobody picked up on my favorite part of the video, lmao.

  • @platinum9825
    @platinum9825 3 роки тому +455

    I could see this AI being very scary when combined with a speedy enemy that wants to zoom around the player to disorient them before engaging

    • @GameEndeavor
      @GameEndeavor  3 роки тому +119

      I have exactly that planned. :D Among some other enemies that could make use of it.

    • @platinum9825
      @platinum9825 3 роки тому +16

      @@GameEndeavor ooo can't wait to see it

    • @TheApeironCreations
      @TheApeironCreations 3 роки тому +6

      This was such a cool video!! Thank you so much can't wait to see more I've already subscribed!!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +7

      Thank you for watching!

    • @nickb220
      @nickb220 3 роки тому +3

      @@GameEndeavor enemies with swinging weapons or circular aoe's!!!

  • @javgroman
    @javgroman 3 роки тому +28

    Vectors are so useful for giving entities a sense of intelligence and you demonstrate this so well and your results are so natural and fun to watch. You use vectors like an artists uses to paint to make something come alive. Love it all!

  • @pholidia8175
    @pholidia8175 4 роки тому +138

    7:50 hey look that's me

  • @iLikeCoffee777
    @iLikeCoffee777 3 роки тому +3

    It was surprisingly refreshing to see you explain the math of the functions in such a straightforward and useful manner. This kind of logic seems as though it would be incredibly useful in a wide variety of games. Thank you.

  • @beeking6561
    @beeking6561 2 роки тому +1

    i keep getting devlogs in my recommended and I'm here for it

  • @Exsulator2
    @Exsulator2 3 роки тому +93

    Would be cool to have a wolf type enemy that only attacks when they are multiple, and circles the player like real wolves would. The wolves will be much more likely to attack the back of the player, meanwhile other wolves will feign attacks and cancel them. Only one wolf attacks at any one time, but many wolves can feign attacks. Any wolf that is chased by the player would escape and return to circling

    • @dota-ed4638
      @dota-ed4638 3 роки тому +15

      As realistic and interesting it sounds, it may be annoying to deal with attack fakes and run aways horde of wolves again and again, unless they are extremely rare

    • @Exsulator2
      @Exsulator2 3 роки тому +11

      @@dota-ed4638 I think the way to deal with the wolves is to recognise which wolves starts an attack animation and kill it. Which means patience and observing. If the player tries to attack a faking wolf, that wolf simply jumps back. I think it should be a little rare, but I don't think it needs to be annoying.
      It should be fairly easy to use your eyes and see that the actual attacking wolf does something differently, and attacking it will result in a kill or a hit at least.
      Perhaps the player doesn't need to deal with all the wolves either, perhaps killing half or even just one is enough to make them run off

    • @dota-ed4638
      @dota-ed4638 3 роки тому +5

      @@Exsulator2 Yes, now that you have explained it a bit, it seems that idea itself is good, what I was worried about was not idea itself but execution, well balanced and modified execution is necessary to implement it in a game.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +19

      Dragon's Dogma did something similar to this. Wolves were interesting to fight but sometimes annoying, though I think that was mostly due to the large number of them. Though having them run off feels unsatisfying. We humans hate for something to go unfinished and I know that would irritate me to no end. It does in other games that do something similar.

    • @Exsulator2
      @Exsulator2 3 роки тому

      @@GameEndeavor I agree it can be annoying, but it's also immersive. When an NPC or a monster leaves your sight, it feels like they have a life of their own.

  • @hakonmarcus
    @hakonmarcus 3 роки тому +8

    Been looking at this a couple time, but this was the moment I decided to subscribe. That enemy movement really looks immersive!

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Thank you! It's certainly a lot of fun. I was beyond ecstatic with these last improvements. Thanks for subscribing!

  • @ThePixelExpedition
    @ThePixelExpedition 4 роки тому +16

    This was an incredible breakdown of your enemy AI. You explained the process extremely well. Awesome stuff!

    • @GameEndeavor
      @GameEndeavor  4 роки тому +1

      Thank you! I tried to keep it comprehensive but not overwhelming. Glad to know I got the idea across. :)

  • @choilive
    @choilive 3 роки тому +4

    Im a developer (but not for games) and found this really fascinating. I liked that it had enough technical detail so that I could probably implement this myself if I wanted and enough visualizations to understand exactly whats going on and why you made the design decisions that you did. Subbed. Keep it up!

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      That's exactly what I'm after with my devlogs. :) Informational for the developers that watch, entertaining yet understandable for everyone else. Hadn't considered non gamedev devs though, so glad to get your perspective. :D

  • @lyukduke
    @lyukduke 3 роки тому +4

    This devlog is so helpful!!! I quitted on developing my own game years ago, this brings back memories and motivation to try again! Thank you!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +2

      Do it. It's the best thing I've ever done with my life. :) I also quit for a while, and I'm so glad I got back into it. You've got this!

    • @concernedcitizen9101
      @concernedcitizen9101 11 місяців тому

      @@GameEndeavor You're a legend

  • @McConnellMatthew
    @McConnellMatthew 3 роки тому +5

    That is a really cool movement system you came up with. It is amazing how even just a small collection of simple rules playing out can lead to such emergent complexity.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +2

      Absolutely. That's what fascinates me so much with boids, especially the more complex behaviors. I would like to use some of those in this game, like following the leader. You can imagine a skelly boss that roams around the map with a group of skellies following behind him. Or just skellies forming groups in general and moving together.

  • @TheGangstaMofo
    @TheGangstaMofo 3 роки тому +10

    This is one of the coolest 2D combat AIs I've ever seen. Looks amazing when they fight each other. And it seems pretty simple as well. You should definitely implement a spell which will make an enemy attack other enemies (mind control). I think it would fit extremely well with the AI. Saved the video for future references. I might implement something similar.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +4

      Thank you. I've already added such a spell! :D I mean, it needs so ironing out, but yeah. Also added a necromancer spell to summon your own skelly. It's pretty nice.

    • @nlaps
      @nlaps 3 роки тому +2

      @@GameEndeavor That's amazing!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +3

      I expect the next devlog to be about it. :D

  • @MeemBeen
    @MeemBeen 3 роки тому +7

    This all seems really cool. And it's also really putting into perspective the difference between game design by Google troubleshoot VS actually knowing how to program hahaha.
    One cool thing I'd probably add is some chance for the enemies to take a fast attack at you if they are at your back, exposed, and you're facing another enemy. Like a sort of backstab manuever that serves as a punishment for getting surrounded.

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      lol, the experience does help a lot. xD
      I don't want to discourage being surrounded. imo combat is a lot of fun when you are surrounded and having to change your target to the biggest threat. But I'll play around with that idea. :)

  • @idkbruh173
    @idkbruh173 2 роки тому +1

    I love the way this video is made! It's quite in-depth, well-paced, and the glowing explanations are beyond awesome for nerds like me!

    • @GameEndeavor
      @GameEndeavor  2 роки тому

      Thank you! That's what I tried to achieve, so it's good to know it worked. :)

  • @pinkskin1998
    @pinkskin1998 3 роки тому +1

    Wow. I recently started with my gamedev journey and boy am I both overwhelmed and inspired. Great work and I'm looking forward to playing your game!

  • @happytoaster1
    @happytoaster1 3 роки тому +23

    I know it's early in the game, but you might consider some alternate art. Giving the enemies "random" characteristics like a hat or club instead of sword adds a lot to combat. You can't remember who you already damaged if they all look identical.

  • @the_procrastinator8606
    @the_procrastinator8606 3 роки тому +7

    Just returned to this video for the hundredth time or so, and now, since I'm quite a similar processing of implementing context-steering behaviors to my game, I couldn't help but notice that your implementation of the collision avoidance behavior is MILES away better than anything I could ever come up with for mine.
    I'm currently using a combination of the navigation 2d plus a standard context-steering-behavior (started from the kidscancode tutorial and built it up from there). So far I've already implemented both chase & flee behaviors (and a "standby" one for middle-ground)... But no matter what I do, I always end up with enemies either overlapping themselves WAY too much - especially when they "enter" each others' collision shape, they kinda get stuck in there since it kinda disrupts the raycasting - or they keep getting stuck in those infinite search-cycles of spinning around. (I'm using the direct_space_state for multiple raycasting)
    Should I turn collisions on for enemy vs. enemy? Or should I keep it only via the raycast (so they won't get stuck when high in numbers)?
    Tried to mess around with flocking but I think it's kinda over my head... Thus I heard performance is not the greatest; that and I simply do not whether it'll produce any kind of superior result than the standard context-steering behavior.
    Any kind of resource on the area (specifically for Godot + actual pathfinding application of it) would be greatly appreciated. Thanks in advance!
    for reference: I'm currently utilizing the addition of the danger to its opposing interest. At first with it, I got into that infinite circling situation, but after applying a curve normalization to the interest array, it went away... Still, enemies are simply overlapping each other way too much.

    • @the_procrastinator8606
      @the_procrastinator8606 3 роки тому

      update: got quite a bit luckier with the cast_motion function, by casting a copy of the character's colshape 2d into motion and give the danger score based on how successful each motion went. Enemies overlap each other a LOT less now, and tend to get "blind" by being stuck inside of each other a lot less.... However, it seems to be very performance intensive, I'm afraid - so it limits me on how many rays and how far I can cast each one of them.

  • @nachoijp
    @nachoijp 2 роки тому +4

    I love that you made the behavior emergent instead of scripted. It looks amazing!

    • @GameEndeavor
      @GameEndeavor  2 роки тому +3

      Thank you! Yeah, it's a big improvement over purely scripted. I'm wanting to do some emergent gameplay mechanics in this game because it's such a fun concept I think. Hard af to do, but fun. xD

  • @alexdisword358
    @alexdisword358 6 місяців тому

    The faction system you did made me feel in awe. Its amazing how smooth and organic it was to see the npc fight each other, really amazing bro

  • @gaminggaming7658
    @gaminggaming7658 3 роки тому

    This one of you vids really took off, which is well deserved with quality like this,
    Great video, I hope your project will do well.

  • @BlueFan99
    @BlueFan99 3 роки тому +13

    Damn! This looks amazing! A lot more games could benefit from using similar combat ai cuz it looks really smooth

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      Thanks! Yeah, been hearing that a lot, lol.

  • @duckonaroll1913
    @duckonaroll1913 3 роки тому +3

    I suggest that when enemies are fighting each other, when the enemies in their group start to go down (say skeletons defeat 3/5 sprouts in a herd) then the losing side starts to run away.

  • @bonjagonzales1868
    @bonjagonzales1868 3 роки тому +7

    What I personally find fun in fighting AI, is when they can tactically coordinate with each other, for example Combine Soldiers from Half Life 2.They feel more real and are quite challengingly fun to fight against.

  • @zee6506
    @zee6506 Рік тому +1

    This is a great video for two major reasons:
    1: as a consumer, it helps me understand the logic behind AI pathing and conclude a solid movement strategy in order to overcome it.
    2: as a developer it helps to consider the user-end gameplay experience and create a better environment for the intended user.
    amazing content. Thank you for taking the time to make this available to everyone.

  • @iraddev6725
    @iraddev6725 3 роки тому +1

    I've been watching this video at least four or five times, this is gold! Thank you for sharing it and good luck with your development

  • @greymatter4096
    @greymatter4096 3 роки тому +169

    There’s a game called Archvale which is similar to this and started development 3 years back. I was wondering if this was an inspiration at all?

    • @GameEndeavor
      @GameEndeavor  3 роки тому +81

      0 inspiration (Archvale seems like it'll be a great game, but not one that I personally will enjoy) and imo nothing alike. :) In fact I even developed my own sword mechanic before I ever heard of them and have been designing this game / story in one form or another for over 18 years.
      This is inspired by 0x72's dungeon pixel art set that I used in the first of miziziziz jam about a year and a half ago (linked below) where I spun the sword around the character (this jam / tileset even directly got me interested in working with pixel art), and over time polished it up until what it is today.
      ua-cam.com/video/u0GZKJGeQLY/v-deo.html
      Archvale is a fast paced, procgen bullethell roguelike (every one of those words is why I'm not interested personally, but respect what they've done). Zoe and the Cursed Dreamer is a slow paced RPG with some action elements. More akin to if Stardew Valley's NPCs suddenly found themselves in Morrowind. :)
      That said, if I'm not mistaken, Archvale is inspired by Terraria, as am I, it being one of my favorite games of all time. Which is probably how we both came to the same sword mechanic separatly. But my only inspiration from terraria is the freedom of the sword swinging mechanic. :) The single facing sprites is simply because it has cut my character art by 2/3rds, and so many games have done eactly this for exactly that.

    • @greymatter4096
      @greymatter4096 3 роки тому +12

      @@GameEndeavor I see, I was just wondering cause at a glance they seemed similar. I do really enjoy these videos too it’s fun to see the development of a fun looking indie game.

    • @bluesap7318
      @bluesap7318 3 роки тому +4

      I remember my friend in college making a flash game like it. It only had one map and took 2.5 mins to complete.

    • @mospusthespider1246
      @mospusthespider1246 3 роки тому +1

      Moment when the pinned comment has 4 likes

    • @greymatter4096
      @greymatter4096 3 роки тому

      @@mospusthespider1246 It is what it is my friend 😂

  • @neco5740
    @neco5740 3 роки тому +7

    I see the algorithm brings us together once again

  • @Addercus
    @Addercus 3 роки тому +9

    You are too smart, damn this is amazing!

  • @Ramba_Mamba
    @Ramba_Mamba 3 роки тому

    Dope!! My personal combat system was feeling quite boring as their was not much things that matter, such as your position, and having different weapons that are good in specific! This will help, smashed subscribe!

  • @tabainsiddiquee7611
    @tabainsiddiquee7611 10 днів тому

    I've been following you since I saw the video about making combats fun three years ago
    Love the direction the game is taking!

    • @GameEndeavor
      @GameEndeavor  10 днів тому

      Thanks for sticking around for so long! I actually just got through watching my first ever devlog. It has come a long way since these videos. 😂 Excited to see what the future holds for it.

  • @Dolphin002
    @Dolphin002 3 роки тому +11

    Good news: I found your channel and I enjoy it!
    Bad news: I watched all your videos in one sitting and now I have no content to watch

    • @GameEndeavor
      @GameEndeavor  3 роки тому +2

      lol, I'm working on a video now that I hope to push out soon. :) Thanks for watching! :D

  • @marcopohl4875
    @marcopohl4875 3 роки тому +4

    that reminds me of two AI ideas I had for an MMO I may or probably make once I motivate myself to learn coding:
    1. Enemies of the "Undead" type will always move toward each other when not having spotted a player to attack, this can snowball until it riggers the "Zombie Apocalypse" world event,
    2. there's a pollution system similar to Factorio, this will give players who focus on building stuff something else to do by having their building attract nearby monsters.
    are those good ideas? I don't know yet how they would interact.

  • @r2o2
    @r2o2 3 роки тому +6

    I'd love a tutorial on this! Keep up the good work!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +6

      Some time soon I plan to make a video that goes into further detail about this. :)

    • @Joshua-hk8mn
      @Joshua-hk8mn 3 роки тому +1

      @@GameEndeavor hey I dont know if you're already done or not. I'm trying to replicate the steering behavior stuff, but I'm having a really hard time with collisions from those vectors. The guys set to avoid a wall obstacle try to go around but end up going through. If you could cover it. God bless.

    • @masterblastr
      @masterblastr 3 роки тому +1

      @@GameEndeavor PLEEEEASE do. I love the system and the game looks great!

  • @picgmr1575
    @picgmr1575 3 роки тому +1

    Having such a beautiful and smooth mechanic arise from such a simplistic system is the greatest indication of a pro. great job

  • @davidholender6855
    @davidholender6855 10 місяців тому

    UA-cam threw this at me and wow, the most enjoyable game dev video I have seen in some time. Thank you, I am now subscribed!

  • @daniiii888
    @daniiii888 3 роки тому +8

    I have a random ideia here: projectiles should get weaker the longer they travel. That way players would be rewarded for getting up close to the enemy and risk getting damaged. This would also make it so that projectile classes can't just camp far away.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +6

      That's an interesting idea. I would want to convey this to the player because I don't like hidden mechanics that could be confusing. But I could do some speed lines effect that step down in stages as the projectile weakens. I'll play around with this, thanks for the suggestion!

    • @tiamat9874
      @tiamat9874 3 роки тому

      @@GameEndeavor You could also change size, having it taper off towards the edge of range, aswell as speed, and maybe even color.

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      @@tiamat9874 I like the size idea. :)

    • @635574
      @635574 3 роки тому +1

      Maybe a relative damage indicator or hit animation to indicate damage, this isnt looking like a explicit number and healthbar game.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      @@635574 health bars are a possibility, not numbers so much.

  • @jay-tbl
    @jay-tbl 3 роки тому +4

    The enemy battles look so realistic!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +3

      Thank you. Still need to iron out some kinks, but I'm very excited for it. :)

  • @brandonmack111
    @brandonmack111 4 роки тому +19

    This game just looks so amazing - even I, who hate most game combat, think this combat looks fun ;)
    Can't wait to see where this goes!

    • @GameEndeavor
      @GameEndeavor  4 роки тому

      Thank you! Do you mind if I ask what it is about most game combat that you hate?

    • @netcore10
      @netcore10 4 роки тому +3

      @@GameEndeavor For me, it's when it's predictable when it shouldn't be. You've solved that though. It's like how darksouls needs to be predictable, vs when a game needs immersion.

  • @odanemcdonald9874
    @odanemcdonald9874 2 роки тому +1

    First vid I've seen from you. Subscribed.

  • @infinitenex8165
    @infinitenex8165 3 роки тому

    I like how in depth you explain your decisions. Subbed and will be watching with great interest.

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Glad you like it. The next video should be especially interesting I think. :)

  • @Dragonorder18
    @Dragonorder18 3 роки тому +3

    An AI system built like that. It's got to be revolutionary for how smart it is turning out. I could imagine it even better if Monsters were the main focus of it, where you're a monster tamer raising a bunch of those into a fighting force. And you wanted your monsters to act semi autonomous. You could suddenly have a game for monster hoard battles!

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Something like that, but I have slightly other plans for this. Perhaps in another title. For this you can have one pet follow you (tameable / raisable), party members, and if you're a summoner / Necromancer you can summon one entity to follow you as well.

    • @Dragonorder18
      @Dragonorder18 3 роки тому

      @@GameEndeavor You know what I'd think you could with it? I'd see if you can get a development partnership with a well known Monster franchise, and team up with them to develop a game together someday. So many of them are just... Lacking in a great AI, yet still managed to get some popularity. Kinda like the digimon world games that the digimon just fight while the player just gives orders and raises them up. I always thought those games could of been so much better.

  • @kermitlaranja
    @kermitlaranja 3 роки тому +5

    This game looks sick man, i wish i was as talented as you are at making games

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      You can be, you just have to learn. I was terrible at it not even that long ago, but I started doing jams and learning how to improve.

  • @penguindood8315
    @penguindood8315 3 роки тому +2

    Just discovered this channel today, instantly subscribed. You’re such a good programmer and artist, I love what you’re doing with this game.

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Thank you! You're very kind to say so. This is the first game where I've been genuinely proud of the art.

  • @PulseTriangle
    @PulseTriangle 10 місяців тому

    I just got started with my first project. Almost no idea what to do but seeing how devs like you work out problems is very encouraging. I design processes for a living but it is very different with games!
    Thanks for the video

    • @GameEndeavor
      @GameEndeavor  10 місяців тому

      Yeah, I love the problems that you deal with in game design. :) Good luck starting your gamedev journey!

  • @brandonanderson8663
    @brandonanderson8663 3 роки тому +4

    Would you be willing to show us the end code you are using? Both the idle and target? I think this looks nice and I would like to see it and play with the variables.

  • @4rwnx
    @4rwnx 11 місяців тому +7

    what is this game's name?

  • @CobainSnake
    @CobainSnake 3 роки тому +13

    This looks amazing, I love the gizmo as well, it really helps visualise the 'intent' of the AI.
    Would adding a little randomness to those angles be a good design choice? If not, why not?
    Take for example Doom's character movement - they use a randomly generated number to zigzag towards the player. This means that no 2 interactions are quite the same, however at the cost of sometimes sub-optimal pathing. I'm wondering what the implications of changing your dot_away to have a little random factor in it (for example generating a factor between 60, 65) would mean for the enemy AI here.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +3

      Thank you! Randomness could be good. :) I actually did this when I was trying to figure out the strafing behavior. My first attempt was to generate a random angle and use it to rotate the seek normal before applying weights to it, and it produced a behavior similar to this. However I removed it in favor of the shaping function that I use now and completely forgot about it. I'll make a note to re-add it back in to the seeking behavior before strafing. :)
      When I did it, I generated a random value after every attack. I wasn't trying to zig-zag just invert the strafing direction. To do the zig-zag I'd need to randomize and invert it on a timer.

  • @tooky_7087
    @tooky_7087 3 роки тому

    I just found this channel and I immediately got it exited when he started talking about this game. I can’t wait for it to come out.

  • @johannengelhardt5885
    @johannengelhardt5885 3 роки тому +1

    I underestimated how much thought goes into these systhems

  • @NaraSherko
    @NaraSherko Рік тому +3

    I came here from Griffpatch

    • @His-Games
      @His-Games Рік тому

      Welcome to the world of real devlogs. If you can understand the mechanics of what's being talked about you are doing it wrong.

    • @NaraSherko
      @NaraSherko Рік тому

      @@His-Games Bro griffpatch made a devlog too

    • @tycathedrawer
      @tycathedrawer Рік тому

      Samee

    • @TochedGrass3742
      @TochedGrass3742 Рік тому +1

      Same

    • @His-Games
      @His-Games Рік тому

      @@NaraSherkoyeah and there are scratch devlogs, and there are devlogs which discuss using shaped trigonometric functions and min-maxing to make the movement of skeletons more realistic

  • @_SparkHere
    @_SparkHere Рік тому +3

    Those who came from griffpatch:
    👇

  • @cameroncollins4123
    @cameroncollins4123 3 роки тому +2

    Opened my eyes to a whole new way to implement pathfinding! Great Video!

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Be sure to check out the pinned comment. This isn't a replacement for pathfinding altogether, it can't handle complex paths. :)

  • @illsaveus
    @illsaveus 3 роки тому

    I had a little trouble following what you’re talking about but I appreciate the time you spent on the iterative process for NPC combat. Can’t wait to check this out!

  • @vojtechbizek
    @vojtechbizek 3 роки тому

    Bro, this is the best movement I've ever seen. Nice work. I wish that every game had this movement now.

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Thank you. Agreed. Perhaps we will start to see it more now. :) Cheers.

  • @fyzxnerd
    @fyzxnerd 3 роки тому

    This is so cool. This video just randomly showed up in my feed and about halfway through I subscribed. Keep up the great discussions like this love the breakdown in your thought process.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      Thank you! Yeah, I like to keep it informational and entertainment. I like that kind of content personally. :)

  • @rossborchers3233
    @rossborchers3233 Рік тому +1

    Been struggling with local avoidance and pathing recently. This is a great solution! Really intuitive to visualize too which is always a nice bonus.

    • @GameEndeavor
      @GameEndeavor  Рік тому

      Thank you. :) Don't rely too much on this for path finding as that's not actually what it does. It avoids small obstacles which can give the illusion of path finding, but it'll get stuck on walls. For that you have to combine it with proper path finding, and you have it seek along the path. :)

  • @jeremybond2
    @jeremybond2 3 роки тому

    I got most of what he said but it was so much fun looking at this that I watched the whole thing twice... Great stuff man!

  • @Gooseguy1000-1
    @Gooseguy1000-1 2 роки тому

    The logic behind what you did sounds impressive. The game looks impressive. Good video, you just got yourself a new subscriber :)

  • @Jay1001
    @Jay1001 3 роки тому

    I just discovered you thanks to UA-cam recommending this video. This not only is a beautiful looking game but I love the technical yet simple solutions you've developed to create enemy movement. You clearly have a lot of passion and creativity for your game and game development period. I'm very much looking forward to you finishing this game and will be following the progress. Good luck with the development!!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      Thank you very much! It's interesting when people point that out to me. I didn't expect my passion to shine through so much. :) Game development is very dear to me, it's actually my recreational activity. I rarely play games nowadays, instead I just enjoy making them.

  • @anneprocter
    @anneprocter 3 роки тому

    Only just stumbled across this channel. This game looks great and I'm hooked already

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Thank you! I'm quite happy with it so far. :)

  • @geoffreymegardon5624
    @geoffreymegardon5624 8 місяців тому

    Very impressively detailed ressource on enemy movements! Thanks for sharing!

  • @javascriptgames8546
    @javascriptgames8546 3 роки тому +1

    Really nice content. I was creating an RTS game like Age of Empires, with 0 experience in game development and I Got blown away by how important the group movement is to this kind of genre. I spent 3 months studying the topic (Autonomous Agents / Group Movement) only to know that I would have to rewrite 85% of my game... But... Now I know that the best approach is to use flow field and boids. I will recreate everything on a near future as now I'm working on another project.

  • @mr.capoone5008
    @mr.capoone5008 3 роки тому +1

    Can't wait for the next devlog. Congrats on how this vid has blown up! Your AI prototype with the shaping function causing the enemies to circle the player got me thinking: an enemy who was encountered in hordes whose strategy it was to actually surround the player and attack from all sides could make for some great variety in combat and interesting fights. Maybe keep this in your back pocket

  • @darryllim9037
    @darryllim9037 3 роки тому

    Dear lord I can’t believe I only just found this channel great content dude have been binge watching your stuff and learning a bunch!

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      You're very kind, thank you. :) Glad you enjoy it!

  • @pspeasant6220
    @pspeasant6220 3 роки тому

    This is by far the coolest devlog I have ever seen man amazing job. this video is truly an inspiration.

  • @honeyproto3455
    @honeyproto3455 3 роки тому

    Hey, I just found this video on my recommended, which is very convenient since I was trying to figure out how to make combat fun in my game! It'll take me a few to figure this all out, but thanks for the video! Very helpful :)

  • @TheGeneralSoundwave
    @TheGeneralSoundwave 3 роки тому

    Thank you so much for creating this video! Helping Artists visually understand programming helps us a TON!!!’

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Glad to hear it. :) It helps me too when working with these kinds of things.

  • @ace_kicka
    @ace_kicka 3 роки тому +1

    A few Ideas:
    --- Enemies ---
    [Nature Faction]
    Mushroom Mage:
    Shoots a spore puff that inflicts a debuff on to the player like confusion or something. Slow moving projectile and slow reload rate.
    Tree Trunk:
    Is a strong but slow and short melee range damage sponge meant to protect the other nature enemies.
    [Undead Faction]
    Skeleton Archer:
    Shoots fast moving projectiles but has a slow recharge rate. Has a chance to load a fire arrow.
    Necromancer:
    shoots poison bottles with splash damage and very rarely revives skeleton warriors when they die.
    --- Abilities ---
    Shield for Warrior:
    Slowly drains stamina bar but shields player from a percentage of damage for a medium period of time.
    Parry for Warrior (or Rouge if he has a dagger):
    small active frames but immediately kills the first melee attacker and ignores damage in that frame. time frame could be ~0.6 seconds
    Tsunami for mage:
    Shoots a wide wave that pushes back all enemies in that direction.
    Grapple for Warrior:
    Pulls a single enemy towards the player and stuns them. Aimed like a arrow.
    Flame thrower for mage:
    Uses a continues stream of stamina to shoot a flamethrower like spell.
    Dodge Roll for Rouge:
    rolls in direction player is moving not aiming. Uses a small amount of stamina.
    Plus Size for Warrior:
    Increases size of Melee weapon's by ~5 times for ~9 seconds and uses a lot of stamina.
    Selective Assassination for Rouge:
    Marks an enemy on screen and allows player to do 3x damage to that target but weakens the player to all forms of damage for ~8 seconds.
    Explosive Arrows for Rouge:
    Kaboom
    Edit: forgot to say how much I am exited for this game, looks great already. Have you thought of a name yet? All of my ideas are subjective to your changes and I'm just trying to help with some ideas. Mabey everyone should do this and we might just come up with some amazing idea eventually. Good luck.

  • @Maribro4
    @Maribro4 3 роки тому +1

    This random video popped up in my feed. And i gotta say i had a fun time. You've earned yourself a sub and i'll be looking forward to seeing more

  • @McBreadbox
    @McBreadbox 3 роки тому +1

    Those tiny details most people wouldn’t notice always take the most effort, and yet it’s always worth it. Nice job!

  • @guiego4722
    @guiego4722 3 роки тому

    I don't known why this appeared in my recomendations, I don't understand what you're saying because I'm stupid, but I'm loving it! Please keep making this videos 🙏

  • @GrizzliusMaximus
    @GrizzliusMaximus 3 роки тому +1

    I'm new to the channel. I've seen many devlogs but this one is not only very useful, its super interesting!!! Thank you very much. I feel like just learned a new skill I havent actually learned yet. cant wait to try out making my own AI!

  • @Sufokia
    @Sufokia 3 роки тому +1

    Wow this is awesome !! I'm definitely becoming a patron ! Big GG !

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      Awesome, thank you! I've been polishing this code just so I can post it on there, so expect that soon. :)

  • @AlexanderMouse
    @AlexanderMouse 3 роки тому

    That's a lot of knowledge and experimentation results packed into

  • @ElmiraTewa
    @ElmiraTewa 6 місяців тому

    your commitment to excellence is evident in every frame!️

  • @charlieluz830
    @charlieluz830 3 роки тому

    OMG! I really like what you trying to do, actually looks like a great game to play tomorrow

  • @TheRoadtoJapan
    @TheRoadtoJapan 3 роки тому

    This is so cool dude. You clearly have a genuine love and interest in learning and improving existing game concepts. Subscribed.

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      Thank you! That's pretty much me. I'm out here having fun pushing my skills to try and learn cool new things, and they're turning into a game, lmao. Thanks for subscribing. :)

    • @TheRoadtoJapan
      @TheRoadtoJapan 3 роки тому

      @@GameEndeavor Love it! I'll be tuning in more often :)

  • @JeraWolfe
    @JeraWolfe 6 місяців тому

    Your brilliance got my subscription.
    I may even join the discord. Keep it up, inspirational af, and don't quit, mah man. That looks SO good!

  • @knightshousegames
    @knightshousegames 3 роки тому

    It's really cool how those little improvements make such a MASSIVE difference in the look and feel of the enemy movement.
    That weighting system for the AI pathing is really slick, and it looks like it performs pretty well, since you can have so many enemies on screen using it at the same time with no noticeable effect on frame rate or anything as far as I can tell. And that tweak to the wandering behavior looks really polished.
    I did an LD game a few years back that this would have been amazing for.

  • @pancakepete7809
    @pancakepete7809 3 роки тому +1

    i wanted to play the game as soon as you explained it holy crap O:

  • @shauncole4392
    @shauncole4392 3 роки тому

    I have never coded and have dreaded it in school, yet this video kept me engaged because you explained it clearly and went into detail about how the mechanics work mathematically, something that I personally understand a lot more

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      I loved math growing up, and it's one of my most used skills now as a game developer. :) Glad you enjoyed the video!

  • @SuperCaptainFail
    @SuperCaptainFail 3 роки тому

    I’m glad this video popped up in my recommended. Your commentary is very charming and explains some of the more complex mechanics efficiently. I hope your channel and your game become more popular!

  • @RideFixRepeat
    @RideFixRepeat 3 роки тому

    I've only got about a year in C# and game dev so far and you just absolutely blew my lid off. How intimidating lol

  • @dranorter
    @dranorter 3 роки тому

    FYI this video is the reason I've subscribed; a friend was describing the circling behavior from it.