Construct 3 - Enemy follow player - pathfinding tutorial

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

КОМЕНТАРІ • 142

  • @XanderwoodGameDev
    @XanderwoodGameDev  2 роки тому +8

    If you found the video useful please leave a like on the video, it really helps the channel. 👍

  • @BranduciProductions
    @BranduciProductions 2 роки тому +8

    This helped me a lot! I am still learning to build games with Construct 3. All of your game mechanics are amazing, keep it up!

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

      Hey, thanks for watching. I am glad you are finding the content useful 😊 👍👍

  • @CMessineo
    @CMessineo Місяць тому +1

    Another fantastic tutorial! I've been working my way through your tutorials and I am learning so much.

    • @XanderwoodGameDev
      @XanderwoodGameDev  Місяць тому

      Thanks buddy. I'm glad the content is useful. Thanks for watching.

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

    even tho am using construct 2(free version) this still helped me with the "how to make the enemy moving actually good and reliable" thing so thank you.

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

    Ahhh what a hero! Will be giving this a watch over the weekend!!

  • @torealexandersen2179
    @torealexandersen2179 9 місяців тому

    By the way, thank you for zooming in on the screen, when ever you add actions, it's a great help especially when im on my phone. And... I just realised going to your mani page... YOU HAVE 4.730 Subs, & 287 videos. What an achievement. Keep it up and we will reach those 5000 family members soon, all the best T.

    • @XanderwoodGameDev
      @XanderwoodGameDev  9 місяців тому

      thanks buddy and I'll keep those zooms coming :)

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

    This is what im looking for! thanks a lot mate, good job!

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

    This really helped me. I was trying to make a flying enemy but pathfinding didn’t follow the target nicely, move to has really helped.

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

    Thank you very much, this video helped me a lot, hope to see many more Constuct 3 tutorials in the future.

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

    Really useful for beginners like me, thanks a lot 🤩

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

    Very good video. Congrats!

  • @someoneinparticular6458
    @someoneinparticular6458 Рік тому +2

    thank you so much man

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

    Great! Didnt found this information on my russian lang. and your lessons helped me!

  • @MikeHart66
    @MikeHart66 3 місяці тому +1

    I am puzzled how much functionality these behaviours provide out of the box. The last time I looked at Construct was in 2014 and version 2. Now I subscribed to version 3 and enjoying it very much.

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

    Thank you so much! That HELPED ME SO MUCHHHH!

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

    This was suuuper useful.Thank you.

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

    oh my god thank youuuuuuuuuuu im dying trying to find a good tutorial and i found you thanks

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

    thanks a lot , please keep it up , really like your tuts

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

      I will do for sure. Glad you're finding them useful. ❤👍

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

    helped me with my game, thanks man

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

    I'm looking to return to using Construct 3 for a big video game project, hopefully this might help in some degree

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

      Nice one. What is the game about?

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

      @@XanderwoodGameDev its kinda like a metal-gear game where if you are spotted, you get chased and they attack ya and if your out of the enemy sight, they resume back to normal. Not sure how that will work out in C3

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

      @@ABMultimediaDesigner nice. Its definitely doable. Good luck with it

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

      @@XanderwoodGameDev thats if i know how to do the coding for the enemies that is

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

    Cool video man! Interesting tutorial despite not being a Construct user :D

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

      Glad you find them interesting. I also find watching people code in godot and unity interesting even though most of it goes over my head 🤣

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

    thank you! this tutorial was really useful!

  • @Marlin-Gamedev
    @Marlin-Gamedev 3 роки тому +3

    Great little system and only in 20 minutes. Also, I'm in the 1% lol :)

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

      Haha nice, I might start throwing out random words to repeat in the comments if you make it to the end 🤣❤

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

    Thanks for your tutorials, they help us a lot.What do you think of a pathfinding tutorial but in platform games?

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

      Thanks for watching. That's an interesting idea, how do you mean? Like having an AI moving left, right and jump etc?

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

      @@XanderwoodGameDev I mean an enemy AI chasing the player jumping on platforms and making decisions to reach him.

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

      Good idea. I'll play around with it.

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

    Hi there, just found your channel and looking forward to going through your previous videos. I wonder if its possible to have 2 sprites that move around independently, maybe 2 players controlling them, joined by a rope or chain that might be a fixed length or even better grow longer if the sprites move apart (up to a certain length where the rope would then break) and join up again when the sprites come back together again. Did I explain that right? I think so. Cheers from New Zealand

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

      Hi 🙋‍♂️ thanks for watching and leaving a comment. That sounds like an awesome game mechanic. I'll have a play around with it and if I can get that working I'll put the tutorial up 👍

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

      @@XanderwoodGameDev I had in my head that the length of the "rope" would be mathematically dependent on the distance between the controller sprites and that would work fine for a straight line rope. But I wonder how cool it would be if the rope was able to use physics to bend like a rope might in real life. esp if the players at the ends tried to walk on opposite sides of a tree and then realize one of them would have to come back round. I'm going to call the game "Tethered" if it ever comes to anything

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

      @@AllyG1967 there will be a way to make that work I'm sure. Let me play around with the idea.

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

    Hi Xander, I have been looking through your lovely, and quite substantial collection of lovely tutorials. Is this the one you would recommend for me, if I wish to create a platformer enemy that attacks my player when he is within line of sight in close combat?

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

      This is basic AI movement so might be useful. But I have another one on melee attacks. You may need to combine the two to get what you need. If you get stuck let me know 👍

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

      Thank you for your reply, highly appreciated.

  • @ironhide1975
    @ironhide1975 6 місяців тому +1

    I have a boss that is not moving at all and not finding the path. Followed your instructions to a T, any ideas?

    • @XanderwoodGameDev
      @XanderwoodGameDev  5 місяців тому

      I'd have to take a look at your source code. Feel free to join the discord and message me

  • @reddit-boy270
    @reddit-boy270 2 роки тому +1

    very helpful

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

    Great tutorial as always! How about an event/quest system with 3-4 events? Like the one in your game. Perhaps It's a bit too long for a tutorial? Keep up the good work! :D

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

      You mean like the objective system?

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

      @@XanderwoodGameDev Yeah, exactly!

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

      @@bannedbytesgames yeah maybe, I'll take a look at what I could do for a short tutorial.

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

    I can't seem to get the enemy to move. I followed event sheet but it's not moving at all. Any ideas? Thanks!

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

    Got an idea for a future tutorial? Comment below👇👇👇❤

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

      Hey Xanderwood! I am wondering how to do multiple levels in a platformer.
      Could you make a tutorial about it?

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

      @@ultimate_amv1472 do you mean transitioning between levels? I have a tutorial series where I make a platform game with multiple levels that may be of use. Just my playlists for it.

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

      ​@@XanderwoodGameDev Maybe my request is not appropriate for your kind of tutorials. I mean, what would be the best option to make different levels in a platformer? Imagine level 1, you finish it and then it starts level 2 and so on till level 30. Would that mean using 30 different layouts? Could you make a tutorial about it? But, I repeat, I don't know if it's appropriate for the kind of tutorial you make.

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

      @@ultimate_amv1472 I understand. It would be the same as transitioning between level 1 and 2, just repeated code, unless you wanted to add a screen in between layouts that show your level stats.

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

      Could you show us how to do this with a platformer behaviour?

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

    cool video. but what if he is supposed to see you through objects but cant go through them? how do you make him travel around the object to get you?

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

      You can do this with pathfinding.

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

      @@XanderwoodGameDev thanks for replying so quickly!

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

      @@worchishier_sawc9866 no problem. You can use pathfinding to see the player through solids and plot ways around them.

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

      @@XanderwoodGameDev does this require coding?

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

      @@XanderwoodGameDev I think I figured every thing out. But do you think that I could have one enemy and two players? Would there be any consequences? for instance, what would happen if each player entered the one enemy's line of sight at the same time?

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

    Hey, thanks for this. How about a vid on invulnerability flashing combined with jump back on enemy collision?
    If you haven't done that already.

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

      I already have that tutorial. Check out the easy game mechanics playlist 👍❤

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

      @@XanderwoodGameDev Cheers, in the process of checking them all out!

  • @malukests359
    @malukests359 11 місяців тому +1

    Sorry to ask ..is there a template of this ??awesome stuff by the way

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

      There is on my patreon. Along with more tutorials. I only post the videos on here. I also have a bunch of mechanics on itch and the construct asset store 👍

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

      @@XanderwoodGameDev tks for answering. Will have a look on it later on. Tks a lot!!

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

    Hi, I'm a beginner in this program, this tutorial is awesome for my practice. Just one question. How can I change the animation of the enemy accourding to direction (four directions in this case)? Thanks a lot for your time.

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

      Hi Juan, thanks for watching. Just add a variable that controls the AI direction. Then set an action that sets the animation = direction.

    • @torealexandersen2179
      @torealexandersen2179 9 місяців тому

      I dont understand how to track the direction@@XanderwoodGameDev

    • @XanderwoodGameDev
      @XanderwoodGameDev  9 місяців тому

      @@torealexandersen2179 for 4 directional top down movement?

    • @torealexandersen2179
      @torealexandersen2179 9 місяців тому

      Top down, yes @@XanderwoodGameDev

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

    I'm on construct 2 and I can't seem to find the "move to" so I can't use the move to object command (there's still the move to command without using the move to behavior but it doesn't work, the enemy won't follow the player)
    Any solution? Pls

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

      Just use move to and set the x and y to the players x and y

  • @Tigglesmith
    @Tigglesmith 6 місяців тому +1

    I made a 3D maze and want an enemy to chase me down, the thing is the enemy just phases through the walls. I wanna make him go around the walls.

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

    Good video sir, it's just that I have a request, what if the calculation of algorithm A star is applied to Construct.?

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

      I don't know what that means.

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

      @@XanderwoodGameDev Sorry sir, maybe we know that c2 adopts the a* algorithm in pathfinding, well.. if we follow the formula, f(n) = h(n) + g(n).. how do we implement it inside c2.?

  • @Big_Banana_Memes
    @Big_Banana_Memes Місяць тому

    im working on a 2d maze game right now, is it possible for you to create a video where the enemies walk in a continuous pattern, however when the character touches the enemy, the enemy has an attack animation and then the character disapears and the game is reset. im placing down a timer for each lvl and also a lives counter to, just wanted to see if this was possible.

    • @XanderwoodGameDev
      @XanderwoodGameDev  Місяць тому

      Yes this is definitely possible. I'll create a tutorial on it but I can't guarantee when I'll have time. I have a patreon and fiverr services if you want me to make this for you quickly.

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

    What about for a side scroller platformer game how do you make pathfinding to the player for that

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

      Good idea. I have a channel on my discord for tutorial suggestions. Could you leave it there so I don't forget?

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

      @@XanderwoodGameDev i will do that in the morning as soon as i can i'll have my alarm set

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

    I have been trying this out and there is something I don't get. Is there a way to make enemies not overlap with solids? When I add solids as obstacles for pathfinding, enemies can't go through them (as they should), but I feel it's only their origin point that doesn't go through the solid and not the rest of the sprite, which overlaps with the solid. Thank you in advance ( ╹▽╹ )

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

      Yeah, in the properties there are setting for the objects that create padding around them making them bigger or smaller in terms of size which will stop them from moving over and through solids.

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

      @@XanderwoodGameDev You don´t mean the collision polygon, right?

  • @MiaPerez-t1o
    @MiaPerez-t1o 12 днів тому

    The enemies seem to follow the player but stop at a distance from the player, how should I fix this?

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

    Is random wandering a thing? How bout a tutorial on that?

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

    Great job your tutorials are getting more advance why not do another tutorial series building a game from scratch but with more advance techniques.

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

      Yeah I will definitely be up for doing that, I just need to finish my off road series first which should hopefully be just a few more episodes. I have too many projects on the go... my RPG game, the upcoming Blackthornprod Jam, my Off Road series and the collab stuff... haha :)

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

      @@XanderwoodGameDev Cool man, it’s good to busy just don’t burn yourself out.

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

    And how to animate the enemy during such a patrol, when he goes to the left, set the animation to the left, and when he moves to the right, set the animation to the mirror?

    • @XanderwoodGameDev
      @XanderwoodGameDev  4 дні тому

      Check out my most recent tutorial on animation states.

    • @othersider_d9d
      @othersider_d9d 4 дні тому

      @ Could you tell me the title of this video?

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

    Thankssssss

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

    Is it not working if I'm on free edition

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

      Not sure. Depends on the limitations of the free version

    • @10bitgaming44
      @10bitgaming44 3 роки тому

      @@XanderwoodGameDev okay thank you i got it working

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

    This was pretty cool but the enemy was phasing through the walls!

  • @farahjasmin8690
    @farahjasmin8690 24 дні тому

    What if i have 2 enemies? Does it need to create a new enemy ai group?

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

    Hello, does anyone knows how I can deactivate "optemizing for pixel art" ??? pls help!!!!!

  • @Charlie-v9x2r
    @Charlie-v9x2r Рік тому

    lets go boys easy dubs

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

    your good at coding (:

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

    Your so cool

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

    i dont see find path

  • @farahjasmin8690
    @farahjasmin8690 24 дні тому

    What if i have 2 enemies? Does it need to create a new enemy ai group?

    • @XanderwoodGameDev
      @XanderwoodGameDev  22 дні тому

      I can't remember what I said in the tutorial but if you're adding multiple enemies of the same type you can put them in a family and give the family all the behaviours. You may also need a function with a parameter that checks each enemies UID. I cover this in my platformed tutorial series in the lesson on enemies.