1. N

    SOLVED Issues with enemy collision while in certain state - will only detect one side and stop.

    Hi all. I'm having a strange issue with collision for my enemy object while in its "attack" state in my 2D platformer. While in this state the enemy moves towards the player object if there is no collision with the wall in front of it. This works perfectly with any wall to the right of the...
  2. S

    GMS 2.3+ Collision issue (works from all angles but one)

    Hello. Got some weird issue with my collision. I'm aware that this might not be the best code, but I'm still learning. Hard to find complete tutorials on top down movement and collisions (taking sprite/mask rotations into account). But managed to draw the player sprites in the draw event, even...
  3. S

    SOLVED Cone of vision

    Hello. I'm trying to create a cone of vision for my enemy object. I am able to draw the cone I want: Create event: coneOfSightLeft = 45; coneOfSightRight = -45; coneOfSightLength = 600; Draw event: draw_triangle(x, y, x+lengthdir_x(coneOfSightLength,coneLeft)...
  4. Robotnik91

    Game Maker 1.4 - Collision Detection Not Accurate

    Hiya! I am using Game Maker 1.4. I am having troubles getting accurate collision detection with my obj_player and my obj_fire_hydrant. I am modifying the collision shapes to be only specific areas of both objects, but when I run the game, the parameters I set are ignored; it's as if the...
  5. Tiamat

    GML Trouble with collision

    I was programming to make the character only move horizontally while in the air(thankfully got that to work), but the collision with the character and wall is extremely weird. Horizontally, the character floats from the platform a few pixels away, and as it approaches the wall vertically, the...
  6. J

    Some instances working, others not.

    Hello there, second post. I plan to be quite active on this forum as I'm also teaching my niece GML. I'm having trouble with my instances, I'm making a platform game with ladders similar to donkey kong, but only some of the instances are working. In order to do the collision detection I have a...
  7. TailBit

    SOLVED Tile collision rectangle

    I have seen the tile collision tutorial with slopes, pretty neat, but I've been trying to figure out how to detect where to end up when you will hit the ceiling, and I have more rectangular collision box.. For the first one, I did manage to figure out that I had to find the room between them on...
  8. 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?
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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)...
  18. 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...
  19. 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.
  20. Misael644

    Legacy GM 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...