• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

collision

  1. M

    [Solved] Precise collision checking with sprite collision mask

    Hi, I'm having problems with precise collision checking with a sprite generated from a surface. I created a circle for collision and an object to collide with. The collision only works as if it was a square, not a circle. Object A: Create Event spr = 0 surfaces = noone...
  2. M

    Gamemaker Physics, Speed and Bounce Problem...

    Hello, I help you guys can help. I am using the Gamemaker functions speed, physics and bounce to have my objects move through my room and bounce off eachother wen they collide with any other object. This is so far only done with the drag and drop commands. The problem is that sometimes objects...
  3. 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...
  4. D

    Drag And Drop Destroying an Instance when Collision Stops Happening

    Hello, I'm very new to GameMaker DnD and programming in general. I'm creating an object that spawns an instance of a different object above it, but I would like the instance it creates to destroy itself once the player walks away. How would I go about this? I can only get the instance to create...
  5. S

    Collision with opening door

    So im making a door right now and everything is working perfectly(top down game btw), the only thing that im not happy about is the fact that when i open my door, i get stuck in it for like half a second because the collision box of the door "hits" me a second, resulting in me getting stuck for...
  6. K

    (Solved) A strange character moving issue

    Here was the ton of text but the reason of an issue was found.
  7. P

    Can't figure out how to wall hug (Drag and Drop)

    Hi everyone, I have a top-down game I'm starting to learn, and I've got the directional change etc down pat, and the collision with the walls works. However, when I collide with a wall I cant move along that wall while walking diagonally. It seems to almost stick me to the wall and restrict my...
  8. Squirtle Plays

    Tile Collision not working

    So I need help with Tile collision I'm using Shaun Spalding's Tile collision code (since I'm not good at coding) and I have physics on for jumping and falling but my character is falling through the floor PS horizontal collision is working and this is my code for step var bbox_side; key_right...
  9. S

    GMS 2 Alert and collisions

    Hi ! I'm pretty new in GMS2, and I stuck to a probleme. I try to make a spwaner who check if place_meeting before triggering a alert who make the object spawn. For now I have this in the step event : if (!place_meeting(x, y,obj1)) { alarm[0] = 1; } It work when the alerte is set...
  10. flyinian

    (solved)Using Tile Based Collision for base building

    I was originally going to use objects for collision and I had a safe assumption that I could do base building with that. However, I decided to go with tile collision and now i am concerned that using the tile and tile collisions won't do well with base building and destructible...
  11. M

    Discussion Solid should be really solid without checking in code!

    Hello, the checkbox "solid" is not implemented consistently enough for me. If I click on the box "solid", then it should also be the case that I cannot go through fixed objects without explicitly querying this (with "place_meeting" and the "move_ ..." commands). If you don't check the box, you...
  12. B

    Player jitters against tiles (SOLVED)

    I need some help. I want my player to collide with the tiles, but when i play it, it jitters against the tiles. How to fix? Thank you! Code: Create move_speed = 8; jump_impulse = 21; grav = 0.75; v_speed = 0; var l = layer_get_id("Collision"); tilemap = layer_tilemap_get_id(l)...
  13. J

    GMS 2 If statement being ignored in collision event

    Hi guys, first post here, be gentle. I'm making a platformer where the two main mechanics are jumping and kicking. When you kick an enemy while it's in it's walk state, it goes flying away from you in an arc before colliding with the floor or a wall and destroying itself. When you jump on an...
  14. P

    GMS 2 Off-screen deactivation disabling object collisions

    I've been making a Zelda-like top down game in GMS2, where the map is one big room with screen transitions, and I made off-screen objects deactivate themselves so enemies wouldn't move when you can't see them. Normally, when you bump into an enemy you will get hurt, but when I leave the starting...
  15. D

    Legacy GM Collision not working.

    My horizontal collision isn't working properly but my vertical is, could someone help please:p my horizontal code: if place_meeting(x+hspd,y,oHouse1){ while !place_meeting(x+sign(hspd),y,oHouse1){ x += sign(hspd); } hspd = 0; } my vertical code: if...
  16. P

    Collision error [HELP]

    Hello! I need help with my collision, I'm a complete beginner when it comes to GML all my codes are just from youtube. However, I've been trying to fix a smooth collision with my objWall for several days now and I'm exhausted. I got help from many people who told me the problem but never...
  17. FacesOfMu

    GMS 2 Collision_line_list ordered from center of line?

    I'm checking for collision tests I could use and I see collision_line_list has the option to have the list ordered, but the text reads "you have the option to order the list based on the distance from the center of the line to the origin of the instances found to be in collision". Does this...
  18. Edwin

    How to find the angle of nearest point where the object is not colliding with other object?

    Hello, people. How to find the angle of the nearest point where object will not collide other object like in Super Mario Maker, where if you put player inside the block, he will be pushed away from it. How to perform it? For example, if the first object spawns in the same place as second object...
  19. O

    Legacy GM Perfect Bullet Collision

    Hello all! This is my first post since the last forum page went down. I haven't quite practiced GMS since then and I am looking for help with bullet collisions. I have looked for similar threads on here but with no luck in figuring out how to do it. The trouble I am running into is either one...
  20. G

    need help with tile collisions

    I have a sprite with a collision box that is rectangular shaped but it seems to teleport or push itself downwards then snap to a grid and can sometimes go through walls. Please i need someone to help me i am using the code in Tilemap Collisions in GMS 2 - GMWolf var dx = moveSpeed *...
Top