Top Down DnD & GML Tutorial in Gamemaker #4 Enemy A.I.

Top Down DnD & GML Tutorial in Gamemaker #4 Enemy A.I.

Slyddar

2 года назад

44,288 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sora3867
@sora3867 - 26.12.2023 09:54

help??

_________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object obj_enemy_par:

Variable obj_enemy.path(100022, -2147483648) not set before reading it.
at gml_Script_check_for_player (line 5) - var _found_player = mp_grid_path(global.mp_grid, path, x, y, obj_player.x, obj_player.y, choose(0, 1));
############################################################################################
gml_Script_check_for_player (line 5)
gml_Object_obj_enemy_par_Step_0 (line 2) - check_for_player();

Ответить
@vohuuthang7217
@vohuuthang7217 - 02.12.2023 16:33

i love you

Ответить
@bunnyqueen2054
@bunnyqueen2054 - 21.11.2023 20:37

I have an issues with the ai, for some reason when im stopped the enemies will be put a ways away like the code says it should, but then for some unknown reason will inch forward toward me.

Ответить
@RPAS1
@RPAS1 - 03.11.2023 21:28

Teacher, can I repeat these codes in my commercial project?

Ответить
@thegamingbean953
@thegamingbean953 - 05.10.2023 04:21

Thanks for tutorial man, it really helped me with my game

Ответить
@thisguy3444
@thisguy3444 - 08.08.2023 07:29

I got “runtime error variable not set” after adding “execute script check_for_player” everything works if I remove that piece of code

Ответить
@kinglunar2467
@kinglunar2467 - 26.07.2023 17:43

Am I supposed to watch this in a series or something because i dont have check for player script. ik its 4# of a series but i thought it'd work on its own.

Ответить
@lordekko7277
@lordekko7277 - 05.07.2023 02:32

I Don't know if this is just me but it seems like this does not work as of right now where game maker is at, this is because i keep running into issue after issue even after rewatching the video a total of 4 times it just wont work even when I copy the code to a T.

Ответить
@WGY_Games
@WGY_Games - 03.07.2023 04:10

Although I didn't use this tutorial for a dungeon crawler, I did use it for a horror game monster. Great tutorial either way!

Ответить
@_doglo
@_doglo - 21.06.2023 22:19

no idea whats going on but it works so you dont hear me complain

Ответить
@Mj.--.
@Mj.--. - 03.06.2023 16:56

"im not gonna be dumb this time" proceedes to make it be the price of 1 blood instead of 0

Ответить
@serdar-bayram
@serdar-bayram - 26.03.2023 14:33

hi, the enemies are shaking when in idle position. When my character moves closer to the enemy, the problem is fixed, but when the character moves away, they flicker when they go into idle position. How can i solve this problem.

Ответить
@victorsikkim
@victorsikkim - 12.02.2023 12:37

how to avoid stacking enemies in each other?

Ответить
@imbenyt9189
@imbenyt9189 - 10.02.2023 13:59

Very good video, good details and information. But gott damn you put more ads in this video than a TV channel ad break 😭

Ответить
@walkanadavih
@walkanadavih - 18.01.2023 17:53

❤❤

Ответить
@Gamemode_10000
@Gamemode_10000 - 20.12.2022 00:04

i got
3 errors

Ответить
@Qwerka
@Qwerka - 17.12.2022 17:55

im trying to create a hotline miami alike game, so the enemy shall look at the character whilst moving to the character. but while it is doing that, it goes straight into solid objects. how may i fix that?

Ответить
@xrqton
@xrqton - 25.11.2022 18:37

what an amazing tutorial - thanks so much mate. Learned so much.

Ответить
@Niandra
@Niandra - 03.11.2022 02:55

This video was really really useful, thanks!! Do you have any advice on how I would basically take this movement/collision and put it on a grid? So a character moves say 50 flat pixels every second, instead of continously moving?

Ответить
@AquosFrost
@AquosFrost - 26.10.2022 11:03

bro you do GML and DND! thats a good tutorial!

Ответить
@darkhunter777
@darkhunter777 - 04.10.2022 23:46

Да вот единственное что хорошо в Game marker это свет, а остальное все говно. Там ни текстур нормальных не вставить ни менюшки сделать нормальной нельзя 😁

Ответить
@babybear7586
@babybear7586 - 29.09.2022 22:42

It didn't work

Ответить
@t90gamemakervietnam8
@t90gamemakervietnam8 - 29.09.2022 16:52

Thanks for your tutorial, so cool !!!

Ответить
@xxninjagaming7407
@xxninjagaming7407 - 15.09.2022 12:35

Hey I’m trying to do the move toward poin function and when I put the 1 for the speed it won’t work can you plz help me

Ответить
@arenndups5294
@arenndups5294 - 06.06.2022 03:34

idk why but my enemies will just stop moving altogether if I stick close to my obj_wall. they will refuse to pathfind to walls that make a thin corridor-like space for my character to move to but the enemies wont enter it. idk what to dooo ;(

Ответить
@felupan
@felupan - 01.06.2022 22:25

My enemies are not even appereaing on the game

Ответить
@Kukatoo
@Kukatoo - 11.05.2022 15:51

great tutorial!

Ответить
@machan6635
@machan6635 - 04.05.2022 08:06

For those of you wondering how Slyddar put down multiple enemies holding 'Alt', it's actually 'Right Alt', not 'Left Alt'. Just found out about it today

Ответить
@mileselectric3677
@mileselectric3677 - 24.04.2022 03:40

hey this is working very well so far but im trying to get it to work for a platformer and having a few issues

Ответить
@reasonoflife1620
@reasonoflife1620 - 19.04.2022 09:36

i cant download the sprites bc of the stupid winzip thing that i have to buy to open it

Ответить
@anthonypacitto3958
@anthonypacitto3958 - 02.04.2022 04:40

Awesome tutorial!! I was wondering if you can provide a method for preventing enemy overlapping?

Ответить
@elizabethkawinski1721
@elizabethkawinski1721 - 29.03.2022 04:44

These tutorials are great! I'm having an error pop up in my Room Start event. My variables "_w" and "_h" are not defining, and so lower under "create motion planning grid" , the program is saying "Assignment operator expected". I've skipped back and can't seem to find the issue. Please help!

Ответить
@erichernandez4192
@erichernandez4192 - 05.03.2022 12:17

Can anyone help me? I’m having a problem when I get to the Clean Up event but I think my comment keeps getting hidden or something because I commented 2 times and it’s not showing up.

Ответить
@yusufmuhamet973
@yusufmuhamet973 - 26.02.2022 10:16

make a lot of GML :)

Ответить
@matt.137
@matt.137 - 20.02.2022 22:59

have a question about the motion planning set up

when i set up the code following the video using DND and tested it, the red boxes that the function draws ends up being way bigger than the actual size of my wall tiles. how do i fix this?

Ответить
@Littlemik15
@Littlemik15 - 15.02.2022 02:32

Just want to say im loving the series! And that im patiently waiting for part 5 🙂

Ответить
@user-ms5lu6bj6z
@user-ms5lu6bj6z - 06.02.2022 19:10

We are you

Ответить
@Quaffyson
@Quaffyson - 29.01.2022 17:37

cant wait for the next one

Ответить
@facundobrandi1116
@facundobrandi1116 - 27.01.2022 06:38

hello, this is a very good tutorial, I'm waiting for the next one please

Ответить
@marcindomanski5654
@marcindomanski5654 - 26.01.2022 22:09

you should focus on GML - its easier to understand

Ответить
@EggCrafted
@EggCrafted - 21.01.2022 11:43

Amazing video, but can you make an tutorial entirely for dnd? I've seen you started that series, but I cannot find any episode from 2. Thanks!

Ответить
@gnomefisher7920
@gnomefisher7920 - 15.01.2022 21:56

If I wanted to add more than 1 type of enemy, how would I go about this

Ответить
@e_buffturtle2037
@e_buffturtle2037 - 13.01.2022 04:58

Is there a way you can make the enemies avoid a tile set (tile collision) instead of solid objects? I have both a solid tiles and objects that have a variable making them “solid”

Ответить
@e_buffturtle2037
@e_buffturtle2037 - 30.12.2021 11:10

Is there a way to implement a minimum and maximum distance that enemies have between each other? I don’t want enemies to be too crowded up

Ответить
@killerkartoffl
@killerkartoffl - 29.12.2021 07:22

Hey im working on a game and your tutorials are helping me alot. could you please make a tutorial about how to make an inventory and how characters can equip items?

Ответить
@djeka415
@djeka415 - 21.12.2021 21:36

Thanks for tutorials 🙏

Ответить
@duckyy3129
@duckyy3129 - 21.12.2021 17:11

Another tutorial would be awesome your content is the best your sooooo underrated your the best

Ответить
@VernorsDoctor
@VernorsDoctor - 16.12.2021 03:37

Please make this a big and extensive series

Ответить
@tjj1171
@tjj1171 - 11.12.2021 03:49

Hey great to see you making another tutorial.

Ответить