otherwise, set the image_angle to the appropriate one depending on the direction, or if you're using the 'direction' value to move the object, which I kind of doubt, just set image_angle = direction. The people who made the original Pac-Man deserve a lot of credit for making such a good one with the resources they had back then.Īs for facing the right direction, if you have a different sprite or image index for other directions, just set it to the appropriate one depending on the direction. Something like this is really hard to make, though. To make something that always follows the player, the best thing I can thing of to do is to make the object search along all the paths that lead toward the player in one frame, then move according to that path. If you're going for something simple, you can just make something that just constantly moves through the maze, and follows the player if there's a clear path. Well, AI like that is kinda hard to make.
Game maker studio 2 enemy ai how to#
I am struggling to find answers on not only how to move my enemy, but move it through a maze AND change its image so it appears to be facing in the direction it's going.Īs you can probably tell, I am extremely new to GM! If you have any ideas I certainly would appreciate it! I'm creating a game similar to Pac-Man and so far I've created the maze and can have the player run through it picking up objects. (04-29-2020, 06:42 PM)bedge Wrote: Hey all! I have a question regarding Game Maker studio 2 DND!