collisions

  1. Z

    GMS 2.3+ Collisions with objects + sliding on walls

    Hi everyone. I'm trying to make collidable objects, of many different types. For now, I'm using walls as a test case. What I want to do is this: the player should collide with a wall object and still be able to move except where there is a wall. This is the setup (that can not change): 1)...
  2. DauntlessDesign

    Drag And Drop Sliding around a box in top down shooter

    I am making a space shooter with indoor rooms, and when my ship collides with a surface, I want it to slide either up or down or left or right on the object, depending on if the surface is horizontal or vertical. In this video, you can see that I have figured out how to get the ship to slide...
  3. Kyrieru

    GMS 2 Fastest object-based platforming collisions you know of?

    When GM2 rolled around, I made the switch to tile based collisions. For a while I was like "Woo! Faster code! tons of things on screen!" And then after using it for like 2 years that turned into "God I wish I didn't have to jump through 10 hoops to do anything at all" So I'm thinking of going...
  4. U

    Check collision only in y axis

    Hey, i'm triying to make a tetris ghost piece, but it glitchs only in this case my code is if place_meeting(x, y, solid_o){ y -= 8} if !place_meeting(x, y + 1, solid_o)and(!place_meeting(x, y + 1,wall_o)){ y += 8} if place_meeting(x, y, wall_o){ y -= 8 }
  5. FrostyCat

    Asset - Scripts Extended Collision Functions

    Extended Collision Functions Companion scripts for built-in collision functions Overview Extended Collision Functions are enhanced versions of built-in collision functions. You can now easily check for collisions with multiple unrelated objects/instances at a time, and optionally pass in a...
  6. BlackberryKin

    2D Platformer Help - Dash State Collisions

    Hi, So I have been developing a 2D Platformer in GMS2 and I wanted to add a dash state similar to how the Knight dashes in Hollow Knight. I got a basic set-up going with different player states, but I will only be providing the dash state code. Mind you, I'm a beginner in GMS2 and game design...
  7. D

    Collisions with DnD

    Hey lads, I'm developing a basic DnD platform tutorial and I was wondering if there was a clean way to handle collisions without using the SOLID option in DnD. With script, it's much cleaner with if (place_meeting...), but I have no idea how to do this in DnD. Also, how would you guys handle...
  8. Cupid Stunt

    GML [Solved] Data structures of objects, message passing, and multiple collisions

    I'm new to GMS2, but I have 34 years programming experience, including 4 years video game programming. IDE v2.2.4.474 Runtime v2.2.4.374 I watched all 4 of the 1st game gml videos on youtube and made the game along with them. I've been searching the forums and the docs on yoyogames. I've...
  9. maxdax5

    Checking for multiple collision...

    Hey hey buddies! I looked on how to check for multiple collision at once and only came up to the "instance_place_list" which happens to work. I just want to understand why this dont work: if (instance_place(x,y,all) != noone){ under = instance_place(x,y,all); with (under){ if...
  10. Harper

    GML Bullet Collisions with Physics Enabled

    So I've been converting my game over so that it works with physics enabled, and I've my bullets working mostly properly but I'm not sure how to do overlapping collisions with Physics enabled. I'm thinking maybe each bullet could have collision_circle() with a very small radius, but I'm not sure...
  11. J

    Question - D&D Basic Collisions not Working, please help!

    I have a character object and it won't collide with my solid building object (or any solid object, for that matter.) I've set up a collision event between that and my solidObjectParent object (parent object of all objects that have collisions with character object). From that, I have a...
  12. P

    Help with code for seperating collided objects

    Hey everyone, I currently have a simple top-down RPG with a jump command, I've made it so when you jump, it negates the collide command, and with my depth working, I'm able to jump over enemies. However, once this happens I can potentially land on the enemy, getting stuck in them, as my code...
  13. JeanSwamp

    GMS 2 Vertical Jump Through Platform Hell

    Hello guys I've been for three days trying to find a solution to my vertical jump through platform. I modidied it multiple times, fixing one stuff, but then messing something else. The jump through platforms work pretty good on themselves, is the vertical moving one that is giving me hell. I...
  14. Retron84

    GML Finding and comparing corners of a bounding box

    I want to compare the corners of the bounding box and see if one corner is colliding with a wall and if one is not so that I can nudge the player so that they "slide" a bit to make moving through small gaps easier. I know of the bbox commands but I can't see how to use them to get the length of...
  15. Carloskhard

    GMS 2 Normal collisions on phy world

    So I have a space game that uses physics for collisions and interactions between the ship and rocks. The results are super nice, however, for bullets and other enemies I don't use the build-in physics because they give me too much problems and it is easier without it. So I'm making collisions...
  16. P

    GMS 2 Player doesn't collide with objects until I move.

    Hey all, so I've been working on this auto runner game and it's going great except for one really weird bug... If I hit enter on the title screen it puts me straight into the auto runner, but if I don't hit a single input after enter, my character is invincible and lets all objects that would...
  17. J

    3D collisions on a race track using pre-determined nodes

    Hello :) Thanks so much to anyone reading this post. I've actively been programming and designing in GameMaker for about 7 to 8 years but I cannot recover my other community account so I've made this one to post my issue here. I'm currently designing a 3D racing game with models imported into...
  18. Fixer90

    GMS 2 No-Move Collisions (Physics)

    So I have a very basic object called obj_player, and another very basic object called obj_collision. The player object's only code is in the Step Event, and it's: phy_position_x += keyboard_check(vk_right) - keyboard_check(vk_left); phy_position_y += keyboard_check(vk_down) -...
  19. MIchael PS

    Legacy GM Specific collision point

    Hello there, Merry Christmas and Happy holidays by the way. Anyway, I’ve been working on a small project lately and I came across a problem. So, what I wanna do is to have the player shoot, and then have a collision line to check if there is an enemy the way he is shooting. And until now I...
  20. V

    Isometric help (collision and depth)

    I've been struggling to determine the best way to have collisions and depth for an isometric game my team is making. I've been able to get some objects working properly, like a bus, but I had to split the bus into two parts, so I could also use a diamond collision mask. However, this game...
Top