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!
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.
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!
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?
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 )
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?
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.
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!
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!
using construct 2 and this video has been really useful to me thanks man
I don't have a state machine in 2. How did you get past this?
Come on man give us [ 02] :)
I was just watching your old vids and omg its so good
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.
omg, Then I need to learn this ASAP
Man, please, why this huge comment? Every state machine is a bunch of if and else hahah
How do I keep grunty a few pixels away from my character instead of directly on it
its not working for me- followed step by step - ugh any chance u can upload the C3 file so I can compare?
it has to do with line of sight- i cant get it to work at all...
so to get it to work I had to have Line of sight settings to: Custom, & Use Collision Cells turned Off. very strange!
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!
why u use grunt.x on distance? but u use grunty?
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?
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 )
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?
Yes. I fix this.
Add another condition in event "For each" and this prombem will be fixed.
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.
how do you replace the string?? im in construct 2 and string is not there it says text
AlexFPS use the text , is similar
AlexFPS when I tried to do this method, the enemy was over the character and did not maintain the correct distance ,worked for you?
I use C2 and I dont have "string" IV . That dont work for me .
String and Text are similar. :)
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?
Subbed for your tutorials, please keep going, I'm ready to eat more lessons as a Ramen Bowl
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.
Same
Hello, lets say i make a platformer. how would i make it jump over (or on)
objects?
I am having problems my enemy are linked to character somehow and are jumping when she dose.
why do i have text variable type instead of string, thank you
same thing mate , "text" is defined as "String" in programming languages so yeah =)
i was able to make the object(enemy) follow me but how can i make him jump aswell?
I might have an idea for you pal
@@fgdx whats the idea "pal"
you can do it by comparing player y and enemy y
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!
I really need this, thanks!
: dude.. relax, yo'u're doing fine..
I need help on how to make lava rise. for my floor is lava game
I tried it and it didn't work am I doing something wrong
This tutorial work in construct 2 ???
Yes, it works fine for Construct 2.
Where’s the rest? Collisions, damage, hit box etc? Not much of an attack if nothing is making contact with the player
can someone tell what is wrong? prnt.sc/ja7kw0
ps: i paused the video at 16:00
Great tutorial! thanks!
Nintendo wants royalties for your use of the Super Mario theme at 7:14
This not work in construct 2?
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
how did you do it? mine is like that too
Informative. Thank you.
I cant get it working
Please make tutorial player attack with sword
Great !, thank you very much
my thing's move for a sec and stop
Please bro ! part 2 ? :D
bel tutorial puoi farlo col giocatore che usa la spada e usa i poteri? please make tutorial player sword and power
doesnt work
19:19
amazing thx bro
17:22
More :)
11:20 😂
THAK YOUU !!! YOU ARE A GOD!!!!
That is high praise 😁
it doesn't work at all. literally same code.
He actually made this thing but he is telling that we have to figure out about him and .bla, bla, bla.
new sub
not bad
4,69 subs