collision detection

  1. P

    GMS2.Issue with moving circles collision

    I have an issue with collision checking of circle instances, actually it just doesn't work and collide_object=noone in any case, also importatnt thing is that i don't know why but x always= chobj.x Important thing:Object doing this script is also a child of Pobj_circle So this is my GMS 2 script...
  2. yashamatt

    GMS 2 [Solved] How to get unstuck while in collision objects?

    So I have a beginner-style collision code set up and I either want to improve it to avoid bugs or develop some sort of work-around so that if bugs occur the player isn't perpetually stuck in a collision object. I kind of need some help brainstorming a solution. Due to dealing with a scope...
  3. O

    Player to Enemy Collision Issue

    Hello, I am currently in the process of creating an enemy AI while following a youtube tutorial. The enemy AI is a simple track the player and over take them. However, after placing a collide script onto the enemy object the enemy object still overtakes and encompasses the player rendering them...
  4. D

    GMS 2 Collision Event + place_meeting [SOLVED]

    Hello everyone! The problem I have faced with is more or less common, but I didn't find any solutions for my case. I create bullet object and it has a speed. As far as I know, the speed determines the distance in pixels where object would be drown every step. So if the bullet has speed 6, and...
  5. AiNaKa

    Legacy GM Collision Detection Not Working

    I'm trying to convert the collision detection that prevents the player from falling through the floor into code. Originally, I had it set as a collision event with the collision object that would set vspeed to 0, and move to contact with said object (to prevent this issue I got with the player...
  6. tibbycat

    Discussion Collision differences in runtime 2.1.3.189 vs recent runtime updates

    I saw that some people were having collision problems also with the latest runtime updates. Was that just with objects that use physics? My game doesn't and my collisions are broken too. This is my player character jumping and colliding with the invisible wall objects in the older Runtime...
  7. D

    Legacy GM Check for collision between two other objects

    Hello. Is it possible to have an object check for collision between two other objects and have that collision affect itself? The way how I'd use it is simple. I have a camera object that snaps to the player's position based on an 800x608 grid. I want it to pause any movement when the player is...
  8. D

    GML Need Help With Collisions Between Two Moving Objects

    I've been trying to make a pong style game for a while now but I can't seem to get any of the collisions right. Whenever I check for collisions, the ball either gets caught in the players or the wall, usually by one of the players pushing the ball into the wall (the players can move in 8...
  9. wizen

    GML Problem with HeartBeast's Tile Collision System

    Hi, I've been having a small issue with (I think) HeartBeast's tile collision system in a 2D platformer environment, and I think I've found the place where it consistently fails, but I'd like some confirmation from someone a little more experienced than I am. The jist of it is that I've...
  10. 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...
  11. 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 :)
  12. Skull_k

    GMS 2 Collision with one object precise and one not-precise

    Hi, I use IDE V2.1.0.212 and run time 2.1.0.136. In GMS2 manual, we can find the following sentence with the picture for place_meeting : "This will work for precise collisions, but only if both the instance and the object being checked for have precise collision masks selected otherwise only...
  13. Wild_West

    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...
  14. R

    Legacy GM Object Collision with moving objects

    So, I'm working on a platformer that will use hybrid tile and object collision for floors and walls. I have the tile collision taken care of in another build, so pay no bother to the tiles in this build... as the player doesn't react to those. My issue is with solid object collision. When the...
  15. Wild_West

    [solved]Collision Circle not registering right

    Okay so this is the nice sphere I get when I use thsses values to make one around my attacking player 100x100 sprite dimensions. if not(attacking){ exit; } else //when you collide with the enemy if(image_xscale == 1) and(attacking == true) and( collision_circle(x+sprite_width/2, y, 100...
  16. J

    Question - Code Spine animation collision issue

    I dont know about you guys but when i import spine animations into game maker 2 the collision system gets wonky. I have a bounding box but it doesn't seem to use it and setting the collision mask to another sprite does nothing. i have a script written to stop the object right before it hits a...
  17. G

    [SOLVED] Pixel-perfect tilemap collision throws error. Not sure how to fix.

    Disclaimer: this is my first post on the forums here, so I can't provide a link to the tutorial I was following. So, I'm working on a top-down RPG, and found an excellent tutorial on pixel-perfect tilemap collisions. It works flawlessly when colliding with objects, but when the player object...
  18. H

    How to change sprite depths for character to move around an object?

    I have my player with a mask around his feet (that way his feet check for collisions, allowing his head to poke through). However, since the object has a front and back, I would like for my sprite to go behind without walking down through the planters, and get in front of the planters too. The...
  19. W

    GMS 2 Collision Issues

    Hi all, I have been following Heartbeast's rpg video tutorials (specifically, on this video @ this time stamp) and noticed that in GMS1, this portion of the interface is pretty different. In the video, it looks as though you define collision properties on the objects, rather than what GMS2...
  20. T

    Legacy GM Could someone suggest how I would go about writing a better collision system please?

    Hey folks, At the moment, I'm using the standard drag and drop collision event that GS supplies however this isn't really as accurate, precise, or as fast as I require. You can see the problem here: https://drive.google.com/open?id=0B0O-TT1RwibRVGNQQl9LQjdKWjQ As the arrow bounces around...
Top