• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

collision

  1. A

    Collision with multiple instances of same object

    I’m looking into how physics works, and I’m trying to have multiple instances with the same objects collide with each other. I know different collision groups have collision against one another, but that’s per object and not per unique instance. What’s the best way to accomplish this?
  2. Tobey

    GMS 2 Check if an object is completely colliding with a tilemap

    I am currently creating void (areas the player can fall into) collisions for my top down game. The void is defined with tiles and a specific tile layer and I want to check to see if the players entire collision mask is inside of the void tiles similar to the rectangle_in_rectangle() function...
  3. junixbr

    SOLVED Tile collision

    I'm having a hard time running a small tile collision system. The lateral (horizontal) collisions are perfect, the negative vertical collision too, but I cannot make the positive vertical collision work. I don't know if it has any influence, but the game has infinite scroll (the screen does not...
  4. inertias

    GMS 2.3+ Physics Engine: how to prevent pushed objects from overlapping?

    Hello everyone, when using GM's built in physics engine, I noticed that when objects are against a wall and pushed, they will slide through each other. I attached a gif of what I'm referring to. Is there no way to prevent this or is it as simple as changing a setting that I'm not aware of...
  5. MercyGRID

    Help: Stacking different size objects on top of each other with priority inside the stack

    Hello all! First post, but I've been toying around for a bit and getting used to the ropes of GML. I'm still pretty new, but I learn quick! I'm trying to accomplish stacking multiple objects on top of one another in the game window, while at the same time giving priority to some objects to be...
  6. Jihl

    Help colliding rhombuses (SOLVED)

    Hey there, I'd like to use place_meeting with an object who's got a rhombus as a collision mask But for some reason it doesn't take the collision with the perfect shape the red one means it's colliding, and the second says it's not colliding and here's the simple code I have for the...
  7. Bochinator

    GMS 2.3+ Enemies follow the player without overlapping

    Hi, this is my first post. I've had GameMaker for a year now so I know the basics. My current project is a simple arena shooter. The player object moves around the room and enemies follow it around. Originally, I used the mp_linear_step_object function for enemy movement. It worked pretty well...
  8. Z

    Animations causes bug in collision

    Hi guys, Here is the problem : I have an animated character. When he changes his direction, like left to right, it might cause some problems with the walls. Like getting stuck. Or for my ennemis (also animated just by a simple line), It can teleport them very far, until they find a wall... Also...
  9. G

    How do I make an object go across the screen, turn around, and come back?

    Hi there, So I'm making a game that requires a plane to go across the sky, hit the outside boundary, then turn around and go back the other way and continue that cycle. I had it working before, using the actions in the images below. Then I changed something in the game that isn't related to...
  10. V

    Collison Issues

    Hi! I've been working on a fan game for Undertale, and for some reason my collisions aren't working. I keep phasing through the wall. I'm relatively new at GameMaker, so any kind of help would be great. For my character sprite, my code is: left_key=keyboard_check(vk_left)...
  11. C

    SOLVED Simple collision with vehicle controls?

    Hey all, I'm currently creating my first-ever game with GameMaker (v2.3.0.529), and have encountered a pretty tough problem (for me, at least). The game I'm making is going to be fairly simple - the player will take control of a car and try to hit moving targets. I've just arrived at the point...
  12. UberhenriK

    GML The character stops before reaching the wall. How can i fix this?

    Hi everybody. Me character stops before reaching the wall. Probably problem is in my collision system but i don't know where exactly. Video with problem: Collision part of "Step" event: If you need it, here is full "Step" event code: How can i fix that issue? Thank you.
  13. Misael644

    SOLVED Event collision problems involving multiple instances.

    Hello again! I'm here because I'm having problems with my game's collision event. Basically, I'm trying to simulate a starfield that works like this: I have an object called "obj_star", in the game, it is spawned by "obj_starcreator", which spawns a star in a random place on the screen. And so...
  14. FiftyFive

    GMS 2.3+ Solid Walls

    Hello i m beginner in GMS2 and my problem is I want my character to stop when it hits the wall, i tried more than 10 things but couldn't. Thanks in advance (My English is not very good, sorry if I wrote wrong)
  15. FullCup

    Circle collision stuck in block.

    Could someone help me about the circle collision, I'm creating a game like 'Among Us' (movement), and I think a circle mask would be cool. However, it is hard to make the collision system so as not to get stuck in the block. How I'd like to do: You're just moving to the right, but the collision...
  16. shoyguer

    GMS 2.3+ (SOLVED) Need help with Slope collision & Movement

    I want to make a smooth collision with slopes. I made that script but then it collides with the slope, this happens: I followed a lot of different tutorials and no one worked. It always make the player jump or climb this slow and pixel by pixel, which is very weird. Look at the following...
  17. atma505

    GMS 2.3+ Precise collision mask not working

    So I'm making a side-scrolling platformer and I've got a Submarine object that I want the player to be able to walk on top of. I'm using a precise collision mask because it's a complex shape and I want the player to be able to walk up/down its slopes and bump into its rudder and conning tower...
  18. erys

    collision problem

    does someone knows why it happens ? // controls press_right = keyboard_check(vk_right) press_left = keyboard_check(vk_left) press_jump = keyboard_check_pressed(vk_space) // mouvements var move = press_right - press_left; hspd = move * walkspd; vspd = vspd + grav; if (place_meeting(x, y +...
  19. erayzesen

    Simple Raycast Script

    Hi all. I released a raycast code to use your any projects; Note: It support Game Maker Studio v2.3 and new versions; Check it out: (with online demo): https://erayzesen.itch.io/simple-raycast The method; var...
  20. S

    GMS 2.3+ Game Maker 2.3 Trial version!

    Hi. I am hoping if you can tell me if it is possible to do collisions and make them work after pressing play and compiling, if you are using the trial version. Because i am following a course about Game Maker 2.3 and have copied the code exactly but it isn't working. There is no error in my...
Top