• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

enemy ai

  1. D

    GML Top Down Shooter Enemy

    I am making a top down shooter bomb disposal game. I have created an enemy object and would like it to be able to detect the player object - 'Player' - within a certain radius, move towards the player's position and when close enough enact a sprite change to 'Enemy_melee' to play the attack...
  2. A

    SOLVED (HELP) walk or patrol behaviour for pathfinding enemy

    Hi there, I am making a top down view game and I have an enemy object which works with a state machine and pathfinding using GRIDS and paths, (some behaviors are: idle, checking, seeing nothing and then going back to the start point, attacking, etc. ), everything works fine, I just want to...
  3. janot_

    need help making ai pathfinding

    i need help making enemy ai pathfinding on a top down game, that´s it
  4. R

    SOLVED improve enemy movement (AI)

    Hi everyone, I need help improving a part of my enemy's movement code. I'm using mp_potential_step_object to have it check where it's moving, see if there's an obstacle, then dodge and continue on its way. However, after making some bug fixes, I noticed that the enemy was a little strange and...
  5. brinycann0nade

    SOLVED Enemy pathfinding with only cardinal directions (enemy cuts corners)

    I want an enemy to follow my player but only be able to move up, down, left, right without being able to move two directions at once. This code does this but whenever he changes directions, he still kind of rounds off his corners and moves diagonal for a short time. Enemy pathfinding code Step...
  6. T

    Enemy states do not work properly.

    I was following this tutorial: When i finished writing everything, my enemy kept switching between the alert and attack state very fast when attacking me. The slash object only appears once and the enemy moves through walls.
  7. T

    My enemy isn't moving after i created more objects

    so, basically my enemy isnt moving and i dont know why, he was moving before but after i created more objects, his moviment just stop working, and this objects that i created don't have nothing to do with enemy, they are just Interface objects. the enemy is entering in the state chase, but dont...
  8. H

    GameMaker remembering object location before start of script?

    I am making an enemy that does a wind up animation and then charges towards the last location of the player when they started winding up. Think a bull rush attack in a straight line. How would I be able to do this? Any help would be appreciated. enemy object creation code: hp = 100 range =...
  9. R

    SOLVED [SORTED OUT]improved route planning

    Hi guys, I'm here to ask for help trying to improve a code. A while ago, when I was very new to GML I wanted to make an AI with good chasing intelligence, which dodged obstacles and followed the player, but I had abandoned the idea because it was too advanced for me. But now I'm making a simple...
  10. Slyddar

    Top Down Dual DnD & GML Tutorial Series inspired by Gauntlet

    GM Version: GMS2 Target Platform: ALL Download: N/A Links: N/A Summary: This is the GML start for a dual GML and DnD top down tutorial series, where we make a Gauntlet like game. The player will shoot enemies with his bow, and even throw bombs to destroy them. The enemies will have path...
  11. R

    Enemy AI

    Hi everyone I am trying to get my enemies to show an alert pop like metal gear solid. My main issue is that the alarm that I am using is never actually starting because its in the step event and keeps on looping. I've tried to look it up something like that. here is some of the code ///Step if...
  12. S

    Enemy AI in 2D Platformer

    Hello everyone! Newbie here. So I'm developing a single-screen 2D platformer (think Balloon Fight on NES) and I'm trying to program flying enemies to chase the player around the screen. I've tried a couple of different options, but nothing's working quite right. So I erased any new code and...
  13. samspade

    Let's Make Some Enemies

    GM Version: 2.3.1 Target Platform: All Download: Github Repo Links: YouTube Playlist Summary: A GML tutorial series on (you guessed it) making some enemies (in code, not real life). In the introduction video I go over the general series idea as well as some basic project set up. And tutorials...
  14. T

    GML Ally and ememy AI

    I have some code below for a simple ally Ai. However I am not sure how to have the ally drone skip the top code if there are no enemies nearby. If I use if(!instance_exists(obj_Player)) exit; then the ally will just float off brain dead. Very new to coding and not sure what to do here...
  15. KamilSeven

    GML (SOLVED)Flying/Hovering Enemy A.I. Motion Planning (Like in Super Create Box)

    Hi! I want to build a flying enemy motion planning for a side view game (Super Crate Box clone for learning purpose). I've tried using a simple motion planning line to achieve it. But the issue is, mp is creating the shortest path to the target, so it doesn't give the effect of flying/hovering...
  16. H

    Team Request [Help Wanted] Searching for team members for Golgotha, a Gothic Metroidvania

    What I need: Enemy Designer Shader Coder Project: Metroidvania platformer with Gothic and horror elements. Qualities: Enemy Designer: Can use 2.3's new sequence feature and can help with coming up with enemy design and behavior fitting of said Gothic/horror setting. Shader Coder: Able to...
  17. H

    GameMaker [Please Help] Enemy pathfinding problems :(

    Hi, GameMaker Community. I'm making a top down game, but the enemies that are supposed to follow the player, sometimes run into walls and obstacles. I've temporarily fixed this by doing the following: // If player is near Enemy object then target_x - is player postition x target_y - is player...
  18. E

    Suggestions for leveling up/incrementing enemy behavior.

    Hello all! Just wondering if anyone can provide a simple way to increase enemy behavior variables, as levels increase, to make them more difficult to defeat; as in speed, different more dangerous attacks, enabling special moves, etc. I'm currently working on a shooter, like Demon Attack, or...
  19. D

    General Enemy Design

    I'm working on a basic, top-down 2D shooter and I need a movement system that is hopefully smarter than a bag of nails. The main things I want it to interact with are obj_player, obj_wall, and obj_enemy. I have wanted to do something that would trace the room it is in and know if the player is...
  20. F

    How do i achieve "slippery movement" / difference between two directions

    So i want to create an enemy AI that charges tword a player but has like a simulated friction/delay. kinda like as if it were running on ice, so it starts still and builds up speed in your direction to try and ram you. But if you dodge him he shouldnt continue moving tword you but in the...
Top