collision checking

  1. S

    GMS 2 Multiple collisions with collision line[SOLVED]

    I'm having trouble with multiple collisions using perfect collisions. The problem that occurs with: //Single collision but only performs the damage state once var cc = collision_line(x, y, kx, ky, obj_elifeparent, false, true); if (cc && can_hit == true){ cc.hp -=damage...
  2. E

    Tilebased slope collision

    Hey guys, I am curently programming a 2d platformer. For collision detection I am using tile based collision. The problem iam facing at the moment is slope collision with upsidedown slopes. i somtimes clip into them and i dont know why... :/ maybe someone could help me with that. Here is my...
  3. Zefyrinus

    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...
  4. K

    Collide with object a certain distance.

    Good day and Excuse me for my English. I would like you to help me with a problem I have when colliding with a certain object. I have a parent object that is par_wall that has as children the object obj_wall. data: -obj_player: dimensions = 32 x 64 px, origin = 16 x 63, botton center, collision...
  5. B

    Activating instances only on the current platform

    Hello everyone! Hit a bit of a wall with the game Im making. Right now I have it so only the section of ground the player is currently standing on is visible (this is an isometric game), all others are invisible. Im using a collision event to do this with a: Visible = other.visible Code in...
  6. B

    How to: Grid-Based Enemy-on-Enemy Collision?

    Hello, I've been following along with HeartBeast's random level generation tutorials, and completed all 7 of them. Afterwards, I adjusted the code to have grid-based movement, so my character moves in a 32 x 32 grid. I want to make a roguelike. The issue I'm running into is how enemies should...
  7. K

    Legacy GM My Collision Mask won't work??

    Pretty sure I'm just brain farting here, I'm wondering why my Collision Mask isn't working. I have Precise Collision Checking enabled. Here's what I have for the Mask Properties: In the room using this wall collision mask, I have an object with the creation code of: 'sprite_index =...
  8. TheOnlyWRT

    Collision code using GML functions

    Hello! So, working on an isometric terrain generation project, i have been trying to make it so that the user can click on one of the four corners of the tile, or in the center, in order to manipulate the tile. I am using the point_in_triangle function to detect the mouse location within the...
  9. M

    GML Mass collision between objects

    Hello Community, I struggle at the collision between for example a horde zombies. If i have like 15 objects on the "same" spot, they stack inside each other and can't move anymore. Have anyone expierience with so many collisions at once ? It is great if they are "slide" off each other. Thank...
  10. P

    Windows triangle wall collision

    I'm try to figure out how to do collision checking between a triangle shaped object,thats constantly changing its image angle(image_angle).Do you have any useful code I could use (studio 1.4).I'm useing h&vspeed for movement(If that matters).
  11. M

    Windows [Solved ] Help with a Collision "Exception"

    Hello, I have only picked up Gamemaker yesterday and I started to make my own game, which is basically a Top-Down, Puzzle like game. This includes the Player being able to throw Knives in order to kill guards, however I am struggling with a certain feature that has to do with the Knife. I now...
  12. Turkish Coffee

    Legacy GM Collision checking with collision_rectangle or position_meeting?

    Hey, A quick litte question, Should I check collision with collision_rectangle() and draw the green color with draw_rectangle_colour() that shows if this place is empty or not, or should I have a colored object and check collision with place_meeting() and change the image_index of that object...
  13. M

    Help with Collision Masks

    Hello all, I need some help with Collision Masks. I created a sprite and converted it into a tileset. I then placed the mask around the borders of my map to create a collision mask. My problem is when I move my Character (object) to test, it interacts with the mask but seems to act funny and...
  14. D

    Legacy GM Collision with whole object

    HI everbody, how to set that collision is true only if whole object "cover" another object, not just part? It is dragable game, I drag an object and drop it above another, and I want to detect collision only if whole object is on another one, not just part. Thank you my GM friends :)
  15. L

    GML Swarm Optimization & Collisions?

    I'm currently developing a swarm that chases you around the map and just have a few questions regarding optimization and collisions which don't use the built in speed variables. Optimization Each alien member uses a position, steering, and velocity vector to update its x and y position. I plan...
  16. L

    Delete Multiple instances that are touching each other

    Hello everyone! How are you today? I am making a puzzle game that when you touch/click a colored block it will be destroyed, and all blocks of that same color would be destroyed that are touching the original block that was touch/clicked. I am trying to figure out the best way to destroy the...
  17. supercomputer276

    GMS 2 Trouble with Collision Masks of Sprites Created from Surfaces

    I'm attempting to test a gameplay concept of erasing parts of a solid object to provide a path through. While I have managed to use surfaces to erase parts of the sprite's physical appearance, attempting to use sprite_collision_mask on the sprite created from the surface results in the same...
  18. D

    Legacy GM object collision problem

    Hi everyone, I'm new with Gamemaker. So I have problem, probably because of myself :) Sorry if my english is not good :) Well, I'm creating game where you pick up an object and with mouse move it and drop it where you want, and if some other object is already at this position, first object...
  19. S

    Issue attaining pixel perfect collision

    Hey guys i'm new to this, I've watched many tutorials on attaining perfect pixel collision with walls but they are all based on arrow key/wasd movement and hspd/vspd variables. My issue is that my character doesn't move using these methods. My obj_player has and orb (obj_dot) that orbits it...
  20. W

    Legacy GM Collision shape comparison[solved]

    Is there any way to compare when one collision circle is in contact with another? I think it's the fix I need for my attacking setup if it's possible but I wouldn't know how to express it since last time I tried assigning collision shapes to a variable and checking if that var was true it didn't...
Top