collision issues

  1. R

    GMS 2.3+ Collision errors after gamemaker 2.3.4.577 update

    Since the 2.3.4.577 update whenever I pull over to the right and to the bottom of a collision block, depending on how stretched it is, I get trough it. If the block isn't streched i don't get trough it. In this image you can see the collision (red line) and see how streched the block. You can...
  2. M

    GMS 2 [SOLVED] Help with collision checks... off by 1 pixel.

    Hello everyone, To start this off, I'm using GameMaker Studio 2 and Runtime v2.1.3.189. So I seem to be having a small collision issue. I'm using a tutorial by Lewis Clark In part 2 it gets into the collision code. Now he seemed to fix his collision issue in the video, but for me there seems...
  3. 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...
  4. B

    Legacy GM [Solved] Clamp() Alternatives?

    Hello! I've been working with a glitch in my game where the characters get stuck in each other, which looks like this: After some testing, I found that it related to the clamp code I have: x=clamp(x, 0, room_width); y=clamp(y, 0, room_height); So my question is: Is there an alternative to...
  5. DonMaklesso

    Collision Tiles

    Hi, I'm quite new to the GameMaker. I've watched some tutorials about collisions with tiles. So far I got this in my player object: //Horizontal Collision if (hspd > 0) bbox_side = bbox_right; else bbox_side = bbox_left; p1 = tilemap_get_at_pixel(tilemap,bbox_side+hspd,bbox_top); p2 =...
  6. 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...
  7. S

    GML [SOLVED] Multiple collision_line IDs

    I'm using collision_line to see whether or not a line-of-sight is obstructed in a turn-based strategy game. When there's a character object and its id != the character that's looking, the obstructed variable is set to true, else set to false. So all of that works fine and dandy but the issue...
  8. Sarena

    GMS 2 [SOLVED] Stuck to Ground when Jumping in Platformer

    I'm creating a Platformer game and I've been having some collision issues when it comes to jumping. Whenever my character jumps and lands on a raised platform, they get stuck to it. The same happens if they start on a raised piece of ground and they jump or fall to the ground below. When they...
  9. A

    Legacy GM mouse movement collision issue

    The player is controlled with the mouse, if it collides with a wall it stops like it should, but then I cant move it for some reason, it stays stuck. obj_mouse: step x = mouse_x y = mouse_y obj_player step if x < obj_mouse.x { if !place_meeting(x-1,y,obj_solid) { x += 10 } } if...
  10. André Guilherme

    GML Problem with collision on an invisible object

    Hey everyone! It's my first time posting so i hope that i'm doing it on the right forum. I've ran across a crazy problem that I've never dealt with in Game Maker and I've found nothing close to a solution online, so I really need help. - Here's some context: I'm making a side-scroller. As...
  11. Strobosaur

    GML Another fast bullet collission thread [SOLVED]

    Sorry if the answer has already been posted, i've looked around but haven't found any good solutions. It's a classic case of a projectile traveling too fast to collide with the intended target. I do have a script in place to check for a line collision every step, and it works EXCEPT in the...
  12. RyanC

    Legacy GM Question about move_contact_all()

    Hi All, Does anyone have the actual code for move_contact_all because I want to make a move_contact_specified_object function. I don't want to check solid on my floor objects and in the collision with floor event I have a move_contact_all but this is moving to enemies when colliding with the...
  13. G

    GMS 2 My sprite pierces object[SOLVED BY MYSELF]

    My sprite keeps with its way when it should stop because there are blocks with collision codes Why I get this error? (CODE BELOW) /// @description Desplazamiento //Desplazamiento horizontal var keyLeft, keyRight; keyLeft = keyboard_check(vk_left); keyRight = keyboard_check(vk_right)...
  14. B

    Path Collision Code Not Working

    I have an object that is set on a path either left or right, depending on which direction he is facing, by holding and releasing the "W" key. The object collides with obj_solid, but sticks inside the object instead of moiving right up to obj_solid. The code below the comment "Mid-SwingCollision"...
  15. darijs1

    Collision Failsafe incase stuck in wall

    Ive made a small platformer game. The current collision code i have works very nicely, nothing gets stuck anywhere, unless the player gets teleported inside the solid object, in which case, the player can no longer move and is stuck there forever. Lets just say i wanna make a failsafe where...
  16. J

    Collision not Working with Cust. Mask

    I created a custom mask for my ai punch animation. The mask is its own object and is instance_create'd when the punch animation/ frames are fully extended. Im not getting collision even though Ive tried all types of collision commands that make sense to me so that my player when "hit" gets...
  17. S

    GML Mask issues with image_yscale

    hey, so im making a shmup and i want one of the shot types to be a thick laser that stops at an enemy. ive figured out i can do this by scaling its yscale, but im having a problem where it seems it doesnt scale the mask too? im not sure what the problem is, ive run countless tests to try and...
  18. T

    Collision Help

    Is there a way to only check if the player is colliding with a certain side of an object? For instance if I want an if event to only happen when the player is on top of a block, but not if the player is hitting the side of the block.
  19. P

    Design Of horses and paddocks

    Hello to all makers young and old! First of all let me introduce myself as this is my first post. I thus got to my first design dilemma, that I spend maybe the last month on, and still cannot really figure out, being half brain dead in math and code. Character: Player interacts with...
  20. MIWICP86

    GML beginner (SOLVED)

    Hi there, I'm completely new to programming and making games, have wanted to make one for a while and after seeing the Humble Bundle deal for GM last Autumn I decided to take the plunge and have a go. I have been following Heartbeasts "Beginner's Guide to making an RPG" and am still in the early...
Top