Make Video Games 2018 ►

In this video I we learn how to create path finding AI that can find the player. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

I’m the founder of codingmadesimple.com that hosts high quality, fun to learn and straight to the point course material for game developers. I’d really appreciate it if you’d check out my content.

Twitter ►
Google+ ►
Patreon ►

Have fun learning!

Nguồn: https://rantbit.com

Xem thêm bài viết khác: https://rantbit.com/game/



30 thoughts on “Game Maker Tutorial – Path Finding Advanced AI

  1. This is good. However.
    To those looking for a more in depth ( and memory leak free ) AI pathfinding tutorial,
    A better video would be: https://www.youtube.com/watch?v=LUw78Tk70bM ( Still applicable to GMS2 )

  2. I know this is a pretty old video, but anyway… 🙂 Is there a way to avoid red squares overlapping the corners as they turn? I mean in Gamemaker Studio 1x

  3. how would i make the enemies avoid eachother instead of walking through eachother. if i do the add instance thingy for the enemy the wont move at all.

  4. Wow, this is really cool and simple. I remember writing my own pathfinding algorithm in Flash, it worked but it was a lot of coding. This is much easier. Thanks!

  5. I wanted to point out that this only works if the objects doing the pathfinding are the same size or smaller than the grid cells. If your object is larger, it will partially ignore collision detection. For example, if those spr_enemy were 32×48 pixels, they would go through the wall by 16 pixels. I haven't figured out a way to account for it just yet.

  6. I wanted to like the video but it currently has 666 likes and that's awesome, so… I'm putting a comment instead.
    Your video really saved my life, thank you for keeping it simple and clear !

  7. Perfect tutorial with clear instructions ! Everything worked, however, is there a way to force my obj_enemy to actually avoid obj_wall ?

  8. Hi, I have a problem, my game runs very slow (some memory issue) after I try out this code (in a test (room is 1980 width and 1080 heith it runs fine ) but in my game room (about 50000 width and 20000 height the game is very slow, is it better to change the step event to a create event ?

  9. My enemy will move towards the player, but will stop when it hits my object obj_wall and not attempt to maneuver around it. Just so you know I am making a top down zombie shooter and my obstacles use obj_wall as its parent, does anyone know what the issue is with my enemy?

  10. I need help! I made an enemy that shoots bullets (when the player is within a certain distance) that hurts the player. The problem is if I'm below the enemy he still shoots cause Im just using the "distance_to_object" script. I want it so if the enemy can see(not through walls) me and im a certain distance from him he will shoot. So this guy on another video said make a line in the direction the enemy is looking that keeps going in that direction untill it hits a wall or the player. If it hits the player and the player is within a certain distance then shoot. I have no idea how to make this line thing. Plz help

Leave a Reply

Your email address will not be published. Required fields are marked *