Construct 3 Tutorial - Advanced Enemy Ai [ 01 ]

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 73

  • @TheAirgunmaker
    @TheAirgunmaker 5 ปีที่แล้ว +8

    using construct 2 and this video has been really useful to me thanks man

    • @joshkearns988
      @joshkearns988 4 ปีที่แล้ว +1

      I don't have a state machine in 2. How did you get past this?

  • @sassafrasofficial3695
    @sassafrasofficial3695 2 ปีที่แล้ว +1

    6:50
    I've been making a game the past week (at least 30 hours of work) for my AP Human Geography class. I've consistently had a problem with booleans being toggled and detoggled in rapid succession and I have to use really round about methods to fix it. Never thought of this as a way to trigger it once. Thank you!

  • @froky6228
    @froky6228 7 ปีที่แล้ว +1

    I was just watching your old vids and omg its so good

  • @momchilbalev6062
    @momchilbalev6062 7 ปีที่แล้ว +29

    Come on man give us [ 02] :)

  • @HasAudomMoy-Angel-Neko-X
    @HasAudomMoy-Angel-Neko-X 4 ปีที่แล้ว

    Subbed for your tutorials, please keep going, I'm ready to eat more lessons as a Ramen Bowl

  • @scottmclennan9231
    @scottmclennan9231 4 ปีที่แล้ว +3

    State machine? You would benefit from using a string array. It is simply a table of indexed instant variables. You have the options to call on and manipulate the data as you see fit. They are an amazing tool and I can I assure you that you'd find many ways to apply them. It will clean up your code and make your life a lot easier... well, at first it will make your life harder. once you learn what arrays are about then you're on Easy Street.

    • @mtastics
      @mtastics 3 ปีที่แล้ว +1

      omg, Then I need to learn this ASAP

    • @guilhermeleao2752
      @guilhermeleao2752 2 ปีที่แล้ว

      Man, please, why this huge comment? Every state machine is a bunch of if and else hahah

  • @JoshuaEworo
    @JoshuaEworo 7 ปีที่แล้ว +2

    I really need this, thanks!

  • @theindiegamedude
    @theindiegamedude 2 ปีที่แล้ว

    If you ever become active in game design again, feel free to hit me up. Maybe we can team up on a project in Construct 3. You had me laughing a few times, in a good way. You've got good personality. Take Care!

  • @ARKitectGaming
    @ARKitectGaming 2 หลายเดือนก่อน

    How do I keep grunty a few pixels away from my character instead of directly on it

  • @pandikdoner1489
    @pandikdoner1489 2 ปีที่แล้ว

    Im using construct 2 and i couldnt make the "state" (instance variables) into "String" because i dont have this option. What can i do instead?

  • @ericwang4359
    @ericwang4359 2 ปีที่แล้ว

    Hello, lets say i make a platformer. how would i make it jump over (or on)
    objects?

  • @HaddytheCreator
    @HaddytheCreator 6 ปีที่แล้ว +2

    its not working for me- followed step by step - ugh any chance u can upload the C3 file so I can compare?

    • @HaddytheCreator
      @HaddytheCreator 6 ปีที่แล้ว

      it has to do with line of sight- i cant get it to work at all...

    • @HaddytheCreator
      @HaddytheCreator 6 ปีที่แล้ว +1

      so to get it to work I had to have Line of sight settings to: Custom, & Use Collision Cells turned Off. very strange!

    • @HaddytheCreator
      @HaddytheCreator 6 ปีที่แล้ว

      Also it only works for 1 or 2 enemies- once I add a 3rd they stop chasing- anyways thanks for the tutorial a great starting point to writing my own AI- appreciate you taking the time to put it together!

  • @muadmz
    @muadmz 2 ปีที่แล้ว +1

    For some reason, for me the enemy does not detect the player and does not go after the player. I added all the variables and events to your tutorial. Took some time, but not pro enough to dare re-doing it again and end up not working again. Most likely I did something wrong, but when I went through my existing Layout 1 sheet events and all the enemy variables/behaviour, does not look like I missed anything.

  • @MertSu66
    @MertSu66 7 ปีที่แล้ว +4

    mate, great tutorial, but if i make multiple enemies like this, their animations are set to how only ONE of them moves, while their behaviours are fine. (I made their animations a different object and used mask for behaviours and collision)
    any ideas?

    • @iShop_Desnogorsk
      @iShop_Desnogorsk 6 ปีที่แล้ว

      Yes. I fix this.

    • @iShop_Desnogorsk
      @iShop_Desnogorsk 6 ปีที่แล้ว +2

      Add another condition in event "For each" and this prombem will be fixed.

    • @mason3872
      @mason3872 4 ปีที่แล้ว +1

      KilloTeam Ignat thank you so much I’ve been trying to make a top down shooter and my ai keep doing the same exact things and it’s extremely jarring.

  • @VinceKirkVang
    @VinceKirkVang 7 ปีที่แล้ว +1

    Informative. Thank you.

  • @FPS31
    @FPS31 5 ปีที่แล้ว +1

    how do you replace the string?? im in construct 2 and string is not there it says text

    • @Jeff_Ghosty
      @Jeff_Ghosty 5 ปีที่แล้ว

      AlexFPS use the text , is similar

    • @Jeff_Ghosty
      @Jeff_Ghosty 5 ปีที่แล้ว

      AlexFPS when I tried to do this method, the enemy was over the character and did not maintain the correct distance ,worked for you?

  • @Taka-cm3rc
    @Taka-cm3rc 6 ปีที่แล้ว +2

    why u use grunt.x on distance? but u use grunty?

  • @claudiofuentes9774
    @claudiofuentes9774 6 ปีที่แล้ว +7

    I used C2. It was everything going awesome until the end, the Grunty Attack Group did not fix the problem of the continuous attacking so i tried several things. What did work was to erased the Grunt(enemy) Attack Group and taking out all the (state ≠ "atk") fron the state machine group. Doing that i got the same result into C2. Any ideas why?

    • @mrwolf2985
      @mrwolf2985 5 ปีที่แล้ว

      use text for state its work, and use standing animation for "idol", and remove (state ≠ "atk") and other , just dont do his mistake , its work on C2 (sorry for my english )

  • @nurhariyanto5438
    @nurhariyanto5438 5 ปีที่แล้ว +2

    : dude.. relax, yo'u're doing fine..

  • @Microbex
    @Microbex 7 ปีที่แล้ว +2

    Great tutorial! thanks!

  • @cervantesdeleon5743
    @cervantesdeleon5743 5 ปีที่แล้ว +1

    i was able to make the object(enemy) follow me but how can i make him jump aswell?

    • @fgdx
      @fgdx 4 ปีที่แล้ว +1

      I might have an idea for you pal

    • @doc6188
      @doc6188 4 ปีที่แล้ว +1

      @@fgdx whats the idea "pal"

    • @naveedahamed3593
      @naveedahamed3593 4 ปีที่แล้ว

      you can do it by comparing player y and enemy y

  • @cococamo191
    @cococamo191 3 ปีที่แล้ว

    I am having problems my enemy are linked to character somehow and are jumping when she dose.

  • @redlinetr903
    @redlinetr903 5 ปีที่แล้ว +3

    I use C2 and I dont have "string" IV . That dont work for me .

    • @EdzelMutas
      @EdzelMutas 5 ปีที่แล้ว

      String and Text are similar. :)

  • @anhhoang5236
    @anhhoang5236 6 ปีที่แล้ว

    Great !, thank you very much

  • @jtacua7822
    @jtacua7822 6 ปีที่แล้ว +2

    why do i have text variable type instead of string, thank you

    • @igsx5252
      @igsx5252 5 ปีที่แล้ว +3

      same thing mate , "text" is defined as "String" in programming languages so yeah =)

  • @ufg_
    @ufg_ 4 ปีที่แล้ว

    I need help on how to make lava rise. for my floor is lava game

  • @ColburnClassroom
    @ColburnClassroom 3 ปีที่แล้ว

    Nintendo wants royalties for your use of the Super Mario theme at 7:14

  • @mrwildcard3639
    @mrwildcard3639 4 ปีที่แล้ว

    I tried it and it didn't work am I doing something wrong

  • @beangames6679
    @beangames6679 5 ปีที่แล้ว

    amazing thx bro

  • @AgentSmith13
    @AgentSmith13 5 ปีที่แล้ว

    Where’s the rest? Collisions, damage, hit box etc? Not much of an attack if nothing is making contact with the player

  • @alexanperformancefit7578
    @alexanperformancefit7578 6 ปีที่แล้ว

    THAK YOUU !!! YOU ARE A GOD!!!!

  • @alec4728
    @alec4728 5 ปีที่แล้ว

    bel tutorial puoi farlo col giocatore che usa la spada e usa i poteri? please make tutorial player sword and power

  • @FadeAwaye
    @FadeAwaye 6 ปีที่แล้ว

    can someone tell what is wrong? prnt.sc/ja7kw0
    ps: i paused the video at 16:00

  • @typerakalamies6237
    @typerakalamies6237 4 ปีที่แล้ว

    I cant get it working

  • @laio5706
    @laio5706 6 ปีที่แล้ว +1

    This tutorial work in construct 2 ???

    • @ovr_dave
      @ovr_dave 6 ปีที่แล้ว

      Yes, it works fine for Construct 2.

  • @pizzahouse_hotnready
    @pizzahouse_hotnready 4 ปีที่แล้ว

    my enemy literally refuses to move.
    I figured out that told it to make the player simulate movement and fixed that
    but it didnt help

  • @Gui-Nogueira
    @Gui-Nogueira 7 ปีที่แล้ว

    This not work in construct 2?

  • @ibemad62
    @ibemad62 4 ปีที่แล้ว

    Please bro ! part 2 ? :D

  • @matahariterbit1954
    @matahariterbit1954 6 ปีที่แล้ว

    Please make tutorial player attack with sword

  • @kuysjess7821
    @kuysjess7821 4 ปีที่แล้ว

    new sub

  • @starguy3777
    @starguy3777 4 ปีที่แล้ว

    my thing's move for a sec and stop

  • @momchilbalev6062
    @momchilbalev6062 7 ปีที่แล้ว

    More :)

  • @scrapsandtools8842
    @scrapsandtools8842 6 ปีที่แล้ว

    not bad

  • @MagicalAlpaca
    @MagicalAlpaca ปีที่แล้ว

    doesnt work

  • @ZAPANIMATIONS
    @ZAPANIMATIONS 6 ปีที่แล้ว +3

    11:20 😂

  • @nikolazagorach1092
    @nikolazagorach1092 4 ปีที่แล้ว

    4,69 subs

  • @georgegvelukashvili6097
    @georgegvelukashvili6097 3 ปีที่แล้ว

    it doesn't work at all. literally same code.

  • @zinanims8877
    @zinanims8877 3 ปีที่แล้ว

    He actually made this thing but he is telling that we have to figure out about him and .bla, bla, bla.

  • @Seauxz_
    @Seauxz_ 4 ปีที่แล้ว

    17:22

  • @schi2989
    @schi2989 4 ปีที่แล้ว

    19:19