• 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!

collision_point

  1. David Lorenz

    SOLVED Optimizing Gun Laser not going through walls

    Hello, everyone! I am representing gun aiming lasers and projectiles as lines. I prevent them from going through walls by checking the maximum length the lines can be drawn, toward the aiming direction, before colliding with obj_collision children. endX = 0; endY = 0; maxLength = 400; while...
  2. F

    GameMaker 360 Degree Hitscan Missing Targets

    I am trying to make a laser that fires constantly and can be aimed in a full 360 degrees. I know why my code isn't working, but I'm not sure how to fix it. The problem I'm running into is that when I set the direction of the laser directly to the direction of the mouse, it jumps over anything in...
  3. angelwire

    Is collision_rectangle faster than collision_point?

    When using the debugger it shows that using collision_rectangle or collision_line is faster than using collision_point. I'd assume checking a single point for a collision would be faster than checking for a collision within a line or a rectangle. As it is now, using...
  4. Z

    GML Can you spot a mistake in this collision checking?

    Hi! I have a problem with this code, and just wanted to check if you guys can see something wrong with it. This game was made with umm... GM6 I think. And it's like 80% finished so I'm not going to change to a newer version for this game. There is an airplane here that can go between LA and...
  5. D

    collisions simply not working

    when I specify the specific object to check collisions for, my collisions work just fine, the bullet hits and all instances of the object lose hp or die. ofcourse I don't want this so I specified the object to check collisions for as all and if the collission is true I used other.hp -= 1, but...
  6. E

    Legacy GM [SOLVED] collision_point

    If I have multiple instances of an object at the specified point, how does gameMaker decide what one to return the ID of?
  7. MartinK12

    GML [SOLVED] object_get_name returns me undefined

    Hi all, I want to make simple debugging tool for my Tower Defense project game, that draws currently mouse pointing object name on the screen. Another words if mouse points specific object inside room I want to draw its name. I have this code in draw event and it draws id of object the mouse...
Top