Slyddar
Slyddar
  • Видео 54
  • Просмотров 1 032 280
Enemy AI Anti Clumping Example - Patreon Bonus
This is an example of the NEW anti clumping code I've added for the top down tutorial video series. It allows the enemies to spread out when following and gathering around the player. This is not needed to follow the tutorial series, and is an exclusive bonus for Patreon members only to show my appreciation of their support for all of my tutorials. If you are a Patreon member and are interested in how it's achieved you can find the code and a breakdown over on www.patreon.com/posts/enemy-clumping-0-119472360.
If you simply want to follow the FREE top down series for GML or Visual, you can find the entire series on my RUclips page.
Просмотров: 460

Видео

Top Down Tutorial in Gamemaker #12 Gamepad Input
Просмотров 1 тыс.5 месяцев назад
Read the pinned comment as it adds an extra step which is needed when using a controller. Also ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info and course codes. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'l...
Top Down Tutorial in Gamemaker #11 Adding FX
Просмотров 1,9 тыс.11 месяцев назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info and course codes. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'll add visual effects to make a cool game you can show your friends. The bonus content showing h...
Tank Dash Main Menu Music and Gameplay
Просмотров 43411 месяцев назад
A new version of the menu music by Aszon, check out his amazing work here - aszon.newgrounds.com/ Also a quick 2 min Bullet League game against 3 AI bots. Tank Dash will have single player content, as well as some cool multiplayer modes such as King of the Hill, Capture the Flag, Last Man Standing and this fun Bullet League/Football mode. You can wishlist the game over on Steam - store.steampow...
Tank Dash - Bullet League Mode
Просмотров 44111 месяцев назад
A few levels of Bullet League from my upcoming game Tank Dash. I uploaded this to demonstrate the great music which was from Aszon - www.newgrounds.com/audio/listen/1263982 Tank Dash will have single player content, as well as some cool multiplayer modes such as King of the Hill, Capture the Flag, Last Man Standing and this fun Bullet League/Football mode. You can wishlist the game over on Stea...
Top Down Tutorial in Gamemaker #10 Dashing with iFrames
Просмотров 9 тыс.Год назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info and course codes. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'll add visual effects to make a cool game you can show your friends. What will I learn? In this ...
New Course and Tutorial
Просмотров 2 тыс.Год назад
A short update on what I've been working on, which includes a collaboration with the official Gamemaker RUclips channel, and a new Udemy course aimed to Visual beginners. How To Make Enemies Smarter: AI Weighted Decision-Making - ruclips.net/video/8qUg_2CvD0k/видео.html Your First Game in Gamemaker - ruclips.net/video/CGsK5lfPICI/видео.html slyddar.com slyddar
Your First Game in Gamemaker Trailer
Просмотров 6 тыс.Год назад
If you're new to Gamemaker, this course will teach you how to make your own simple game using Gamemaker Visual. Head over to slyddar.com/2023/05/04/new-udemy-course-available to grab a coupon code which will give a huge discount off the retail price of the course, and should be even lower than any discount Udemy's is already offering. Udemy also offer a 30 day money back guarantee, so you can p...
Top Down Tutorial in Gamemaker #9 Area of Effect Damage
Просмотров 6 тыс.Год назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info. My new First Platformer Udemy series will be released early April 23. The Patreon Bonus section on how to clean up enemy bodies is available here to Patreon members - www.patreon.com/posts/80947366 At the end of this series the player will shoot enemies with his bow, and even throw bombs ...
Move And Collide with Slopes - Gamemaker Tutorial
Просмотров 12 тыс.2 года назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info. Gamemaker has just released a new move_and_collide function, which allows you to program simple collisions in a very efficient way. You can have a platformer with slopes with a very small amount of code. What will I learn? In this overview I show how to implement collisions using this new...
Top Down Tutorial in Gamemaker #8 Automating Tiles
Просмотров 9 тыс.2 года назад
NOTE : There has been a change to Gamemaker as of May 24. They changed how collision_point works, so this method will now not merge all of the solids correctly. The solution is to enable Collision Compatibility Mode in the Options to revert GM back to how it used to work. See this post for more info - github.com/YoYoGames/GameMaker-Bugs/issues/5792 Link to Discord topic for Homework question - ...
Top Down Tutorial in Gamemaker #7 Enemy Attacks
Просмотров 12 тыс.2 года назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'll add visual effects to make a cool game you can show your friends. What will I learn? In this tutorial we conti...
Top Down Tutorial in Gamemaker #6 Damaging Entities
Просмотров 15 тыс.2 года назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'll add visual effects to make a cool game you can show your friends. What will I learn? In this tutorial we conti...
Top Down DnD & GML Tutorial in Gamemaker #5 State Machines
Просмотров 19 тыс.2 года назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'll add visual effects to make a cool game you can show your friends. What will I learn? In this tutorial we conti...
Top Down DnD & GML Tutorial in Gamemaker #4 Enemy A.I.
Просмотров 52 тыс.3 года назад
Ensure you Like and Subscribe for more exciting Gamemaker content, or check out slyddar.com/ for more info. At the end of this series the player will shoot enemies with his bow, and even throw bombs to deal area of effect damage. The enemies will have path finding algorithms, and we'll add visual effects to make a cool game you can show your friends. What will I learn? In this tutorial we conti...
Top Down DnD & GML Tutorial in Gamemaker #3 Projectiles
Просмотров 22 тыс.3 года назад
Top Down DnD & GML Tutorial in Gamemaker #3 Projectiles
Top Down DND & GML Tutorial in Gamemaker #2 Sprites
Просмотров 40 тыс.3 года назад
Top Down DND & GML Tutorial in Gamemaker #2 Sprites
How does GMS2's subscription model impact you?
Просмотров 2,8 тыс.3 года назад
How does GMS2's subscription model impact you?
Gamemaker Top Down GML #1 - Can We Make Gauntlet?
Просмотров 41 тыс.3 года назад
Gamemaker Top Down GML #1 - Can We Make Gauntlet?
Gamemaker 2 is now free! Or is it?
Просмотров 6 тыс.3 года назад
Gamemaker 2 is now free! Or is it?
Gamemaker: Sequence Animations (GML/DND)
Просмотров 3,5 тыс.3 года назад
Gamemaker: Sequence Animations (GML/DND)
Gamemaker DND Platformer Tutorial - #20 One Way Platforms
Просмотров 8 тыс.3 года назад
Gamemaker DND Platformer Tutorial - #20 One Way Platforms
Gamemaker: Menus with Submenus #3 - Mouse Support (GML)
Просмотров 4,6 тыс.3 года назад
Gamemaker: Menus with Submenus #3 - Mouse Support (GML)
Gamemaker: Menus with Submenus #2 - Selections (GML)
Просмотров 6 тыс.3 года назад
Gamemaker: Menus with Submenus #2 - Selections (GML)
Gamemaker : Create Levels from Images (GML)
Просмотров 5 тыс.4 года назад
Gamemaker : Create Levels from Images (GML)
Gamemaker Top Down DnD #1 - Can We Make Gauntlet?
Просмотров 108 тыс.4 года назад
Gamemaker Top Down DnD #1 - Can We Make Gauntlet?
Tile Based Moving Platform Engine for Gamemaker Studio 2 Trailer 2
Просмотров 3,1 тыс.4 года назад
Tile Based Moving Platform Engine for Gamemaker Studio 2 Trailer 2
Tile Based Moving Platform Engine for Gamemaker Studio 2 Trailer 1
Просмотров 2,1 тыс.4 года назад
Tile Based Moving Platform Engine for Gamemaker Studio 2 Trailer 1
Gamemaker DND Platformer Tutorial - #19 Sound Design
Просмотров 4,7 тыс.4 года назад
Gamemaker DND Platformer Tutorial - #19 Sound Design
Gamemaker Studio 2 : Transitions (DND)
Просмотров 4,6 тыс.4 года назад
Gamemaker Studio 2 : Transitions (DND)

Комментарии

  • @Kattenb
    @Kattenb День назад

    This tutorial sucks

  • @Beologe
    @Beologe 11 дней назад

    I love to see your patreons increasing from each video to se next :D Absolutely Deserved.

  • @Beologe
    @Beologe 11 дней назад

    This is soooo nicely done, I thought the double screen would be irritating, but it even helps me. This is such an awesome tutorial. The best is, I wanted to try to code the Gauntlet game from the NES... With this tutorial it is wayyyyy easier xD And I love the Artwork. Soo coool 😍

  • @jtenzgames
    @jtenzgames 12 дней назад

    Very cool. I've got something like this working in the dungeon crawler I'm making in GM. Yours seems a bit more smooth though, mine lags a bit. I may need to become an exclusive member if I can't improve my enemy AI :D Cool series though, I'll continue to look forward to future vids!

  • @pauldolton9118
    @pauldolton9118 15 дней назад

    great to see the series up and running again, ive got the project waiting each time there is an update :)

    • @Slyddar
      @Slyddar 13 дней назад

      Well this is more an extension of a past episode for Patreon members, but I'm working on the next installment. It will be on how to add multiple levels and implement how Gauntlet exits a level and moves to the next. Thanks for the support!

  • @ZaneHoch23
    @ZaneHoch23 16 дней назад

    Thank you for this, I was struggling lol.

  • @jakedouds1186
    @jakedouds1186 18 дней назад

  • @TheBiscuitthief1
    @TheBiscuitthief1 21 день назад

    Great tutorial, thanks!!

  • @vincentmanninen6389
    @vincentmanninen6389 22 дня назад

    For some reason all my enemies are still one-hit, regardless of what damage or hp equals. Help?

  • @Lemonade-ip1jf
    @Lemonade-ip1jf 23 дня назад

    My enemies stopped spawning after I killed them all, anyone know why that might be?

  • @MariusChollet
    @MariusChollet 24 дня назад

    when the enemy is close enought to attack, it switches to the attack animation for a single framce before going to the idle animation for a single france and repreating this forever... idk how to fix this ( great tutorila btw, i love them)

  • @BeebyWeeby
    @BeebyWeeby 25 дней назад

    I'm a complete novice determined to make a game, and the way you explain things is phenomenal! I really feel like I'm learning how and why things are done, not just the "you put this here because it works" I've gotten from some tutorials. Thanks so much!

  • @Slyddar
    @Slyddar 25 дней назад

    One thing I forgot to add is to set the controller deadzone. Setting the deadzone allows the controller movement to be ignored if it's below a certain amount. This will stop stick drift on your controller which can make you move when you didn't push it, because if there is any movement at all the player will appear to make dust and move a slight amount when they should be standing still. To implement it you simply add the line "gamepad_set_axis_deadzone(i, 0.3);" in the get_input function after the "if gamepad_is_connected(i) {" line. So now each device will set it's deadzone when checking for input. For Visual users, there are codeblocks for these 2 functions, so use them in the same way. If you feel up to it, a better solution is to use a for loop to set all 12 devices deadzones to a value like 0.3 in a game_start event of the game object, as it only needs to be set once for the whole game, but either solution is fine.

  • @KobraStormGames
    @KobraStormGames 29 дней назад

    Has anyone else run into an issue after setting up the facing for the enemies, where upon approaching their detection range, the whole window freezes up?

  • @chrisevernden5648
    @chrisevernden5648 29 дней назад

    GG. Gg f hi

  • @detectiveed.sciple817
    @detectiveed.sciple817 Месяц назад

    Just a bug I ran into and fixed with my code: Whenever I killed the enemy, the game would crash because I made it so the enemy died first in the step event, than it would attempt to do pathfinding. Just change the order so dying is done last or make it so there is an if statement to make sure you're not dead when the stuff further down the step event is done.

  • @rainahead12
    @rainahead12 Месяц назад

    How to use the data from the string ones???

  • @ChagasOliveira-q5z
    @ChagasOliveira-q5z Месяц назад

    Don't worked!

  • @hugoland9027
    @hugoland9027 Месяц назад

    are you ever gonna do a tutorial on shaders and stuff like that???

    • @Slyddar
      @Slyddar 25 дней назад

      I'm not a shader expert, so probably best I don't delve too far into those in a tutorial.

  • @blenderup919
    @blenderup919 Месяц назад

    Keepers of Pyrite no finish??

  • @theonewhoasked9834
    @theonewhoasked9834 Месяц назад

    hello so im working on a game with similar enemy ai however im having trouble with the path finding collisions, basically when the enemy walks next to walls or near walls parts of the sprite is just in the wall it can also walk thro spaces much smaller than its sprite size

  • @CoyoteArcade-182
    @CoyoteArcade-182 Месяц назад

    how did you set up a collision layer ?

  • @SloppyPloppyJingoShingo
    @SloppyPloppyJingoShingo 2 месяца назад

    Is this your style of programming character movement and collisions? I'm learning GML as a first language and noticed that there is more than one way to achieve movement and collision.

  • @ChaosMan
    @ChaosMan 2 месяца назад

    i followed this code but my player movement is jagged, any ideas why?

  • @Reddragon-lh1pk
    @Reddragon-lh1pk 2 месяца назад

    when I go to play the game, it keeps saying Object: obj_mother Collision Event With obj_ghosts_mother at line 75 : wrong number of arguments for function sign Object: obj_mother Collision Event With obj_ghosts_mother at line 75 : malformed assignment statement

  • @Insomnyc
    @Insomnyc 2 месяца назад

    it keeps returning with: ___________________________________________ ############################################################################################ ERROR in action number 1 of Step Event0 for object o_player: Variable <unknown_object>.right(100003, -2147483648) not set before reading it. at gml_Script_calc_movment (line 15) - var _hmove = right - left; ############################################################################################ gml_Script_calc_movment (line 15) gml_Object_o_player_Step_0 (line 20)

  • @andrewthomas7628
    @andrewthomas7628 2 месяца назад

    I’ve been tinkering for hours but I still get stuck in the “floor” I could jump out of it and all was fine until I tried to get rid of the infinite jump now I jump once and then can’t jump anymore after getting stuck. Any help?

  • @CoyoteArcade-182
    @CoyoteArcade-182 2 месяца назад

    bro if u see this just know your a beast i was curious about this engine and the first video i seen is yours and it actually worked , i learned a lot

  • @bubbeats5606
    @bubbeats5606 2 месяца назад

    I’m so happy I finally found a tutorial with visual coding, and not scripting.

  • @Asadfishwhodoesart
    @Asadfishwhodoesart 2 месяца назад

    Does anyone know how to fix this? "ERROR in action number 1 of Step Event0 for object o_player: Variable <unknown_object>.keyboard_check_(100008, -2147483648) not set before reading it. at gml_Script_get_input (line 13) - if keyboard_check_(ord("S")) down = 1; ############################################################################################ gml_Script_get_input (line 13) gml_Object_o_player_Step_0 (line 5) - get_input();" I looked over the code, and have attempted this twice, the problems start immediately once I put in the character object, maybe its existing undetected until I do so, but I have no idea.

  • @Asadfishwhodoesart
    @Asadfishwhodoesart 2 месяца назад

    I'm getting an error called : "Script: get_input at line 6 : got '(' expected '{'" its in the get_input part of the video, and for some reason it thinks I need a '{' I don't know how to fix this, any responses are greatly appreciated! EDIT: I managed to get it to run, but the character won't move. So it's a new issue, maybe 😭helppp

  • @devinblack606
    @devinblack606 2 месяца назад

    Just in case anyone runs into the same problem I did. If you have a create event in the child enemy it will override the one in the parent enemy. This caused an error telling me I had not defined the variable "path". I ran into this problem around the 23:30 minute mark of this tutorial. The solution was simple, delete the create event in the child enemy.

  • @GuidingGiggle123
    @GuidingGiggle123 2 месяца назад

    When i turned the player moving script into little smaller scripts and i pressed F5 an error popped up saying that hsp was not set, but it was set in the input script, the scripts are read in order, so i don't know the problem☹️

  • @Reddragon-lh1pk
    @Reddragon-lh1pk 2 месяца назад

    At 12:57, how do I drag the second 'If variable' and 'else' to the right side of the first 'If variable' code block? When I try to drag it, it will only slide around under the first 'If variable' code block. It won't disconnect from the line on the left side. I can redo all of it to get it in the right place, but I would be easier if I knew how to drag it.

  • @Goblinguy77
    @Goblinguy77 3 месяца назад

    one of the most helpful beginner gamemaker tutorials i've seen, thanks

  • @GeorgiePorgieGOAT
    @GeorgiePorgieGOAT 3 месяца назад

    this doesn't work i don't know why...

  • @neppydork
    @neppydork 3 месяца назад

    13:14 am I missing something? when i put image_index and sprite_index nothing happensmy player dosnt turn

  • @alphagamer9674
    @alphagamer9674 3 месяца назад

    hello i have an error in the line 41 and 24 on the step cuz he said i have a duplicate statement (MAIN and SETTINGS) can someone help me pls

    • @Haziqrm47
      @Haziqrm47 2 месяца назад

      can you tell me the crash info and what event?

  • @ryanwicks2867
    @ryanwicks2867 3 месяца назад

    as soon as i compile my events into scripts, it stops working, luckily i was smart enough to do a back up save first, because iv started fresh 2 already. if there is a trick to understanding the debug function , please let me in on it.

    • @Slyddar
      @Slyddar Месяц назад

      Yoyo put out a pretty decent in depth discussion on how to use it - gamemaker.io/en/tutorials/debugger

  • @auadoods4046
    @auadoods4046 3 месяца назад

    love the videos thank you really appreciate the effort and i ve tried every solution on the interent but i cant find a solution for the enemies overlapping

    • @Slyddar
      @Slyddar Месяц назад

      It is a problem. I have a very simple solution to that over on Patreon, but I've also developed a more complex method of separating them while they move. I haven't posted it over there yet, as I was still finalising it, but I will do so eventually. And I agree, there is nothing online where people show how they handle that problem well.

  • @treesaretough
    @treesaretough 3 месяца назад

    Thank you so much for doing DnD/Visual. I know people say GML is better or easier but I never felt like I understood anything, just copied someone elses work. Visual makes me feel like im actually learning how it works. Speaking of that, Ive got most of this working but I have question about how it works. If you are setting xp from x and then you go on to subtract x - xp why isnt it always 0? If xp was set to x then it would be x - x. I know thats not how it functions but how is the code running so xp isnt set to the current x? Thanks again

    • @Slyddar
      @Slyddar Месяц назад

      We initially set xp = x in the create event so it will be the same for that one step only, but going forward x is always set during the STEP event/movement so we can then set xp = x in the END STEP event since the instance has already moved that step, then next step xp will equal what x was the previous step ... if that makes sense :)

    • @treesaretough
      @treesaretough Месяц назад

      That does make sense, thank you!

  • @sethjackson2010
    @sethjackson2010 3 месяца назад

    Thought I was doing good on this tutorial until this video.. but im getting a bug where when I run my game my sprites go haywire and flashy but when I record a clip of it, it doesn't show it going crazy.

    • @Slyddar
      @Slyddar Месяц назад

      As you work through tutorials online save a new copy of the game before you start each tutorial so you can always go back and do it again if it fails. Repetition will also help you learn better too.

  • @GulumEi
    @GulumEi 3 месяца назад

    i got a error on the function check_if_stopped at abs(hsp) and abs(vsp) the hsp and vsp is red i dont know why ? at 19 min

    • @Slyddar
      @Slyddar Месяц назад

      Maybe come to the Discord and post an image of the error.

  • @alic3513
    @alic3513 3 месяца назад

    Someone can help here? i'm followed the tutorial but always say this E GM1100 Expected identifier but found ',' instead. collision

    • @Slyddar
      @Slyddar Месяц назад

      Post the EXACT error, or even better come to our Discord and post an image of it.

  • @BSS2151
    @BSS2151 3 месяца назад

    Where did you get the enemy sprites from?

    • @Slyddar
      @Slyddar Месяц назад

      It's shown in the description

  • @trent3902
    @trent3902 4 месяца назад

    I noticed an error in the DND at 29:15. The color in the "draw sprite transformed" should be c_white and not $FFFFFF. It makes the entire screen turn white if it is $FFFFFF 😂

  • @georgehennen
    @georgehennen 4 месяца назад

    Okay but add rotations.

  • @dr.rajasaurusandunclebonec6526
    @dr.rajasaurusandunclebonec6526 4 месяца назад

    What if the leaf jumps to top to a position relative to the player, you'll have the same few leaves jumping up and down without having to create new ones.

  • @94peper
    @94peper 4 месяца назад

    other way to create collision if it's not working for you function collision(){ var _hmove = right - left; var _vmove = down - up; if _hmove != 0 or _vmove != 0 { var _dir = point_direction(0, 0, _hmove, _vmove); _hmove = lengthdir_x(walk_speed, _dir); _vmove = lengthdir_y(walk_speed, _dir); if (!place_empty(x+_hmove, y)) { if (place_empty(x, y+_vmove)){ y+=_vmove; } } else { if (!place_empty(x, y+_vmove)) { if (place_empty(x+_hmove, y)){ x+=_hmove; } } } } }

    • @Slyddar
      @Slyddar Месяц назад

      The reason this method is not as good is if you have a large value for walk_speed, say 20, the character will never be allowed to get within 20 pixels of the walls. At low values it won't be noticeable, but the faster the player moves, the more janky it will feel.

  • @Ardious
    @Ardious 4 месяца назад

    I have a question regarding the if object at place logic. Would it be possible to make it more generic? Make it check for ALL objects at the target location in the collision script?