• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

collision

  1. MrLostProphet

    Shaun Spaulding top down tile collision system help

    I've been following Shaun Spaulding's Action RPG GameMaker tutorial on youtube. In his third episode in the tutorial, he focuses on making a tile collision system. I've run into an issue where when my player object collides with something going to the right, the players position is reset to the...
  2. R

    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...
  3. GONE

    SOLVED colliding teleport glitch

    I just finished making my enemies walk and I realized that every time they collided with a wall they teleport ahead. vsp = vsp + grv; // horizontal collision if (place_meeting(x+hsp,y,Owall)) { while (!place_meeting(x+sign(hsp),y,Owall)) { x = x + sign(hsp); } hsp = -hsp; } x = x +...
  4. flyinian

    SOLVED Performance hit with mp_potential_path

    I'm using mp_potential_path inside an alarm in my enemy instance and I'm having a massive performance hit when its executed. It consumes about 80% of the step. Each enemy is a child of the same parent inheriting the same code. There are currently 10 enemies being spawned at a time. I have the...
  5. P

    tilemap collision "bouncing" issue

    ive been having an issue where my player object keeps bouncing off the ceiling and floor of the tiles. i got the code from this guy on youtube, here is the link: im new to programming so this could just be due to my lack of knowledge but here's what i tried: i originally thought this issue was...
  6. Genesys Generation

    How to detect when a shot hits the opponent from behind?

    I'm making a game where the enemy can turn on its own axis in 360 degrees (top view game). The player-controlled character has a bow. With this bow he shoots and deals damage when he hits the enemy. I would like that when the arrow shot from the bow hits the enemy's back he would take double...
  7. angelwire

    Is collision_rectangle faster than collision_point?

    When using the debugger it shows that using collision_rectangle or collision_line is faster than using collision_point. I'd assume checking a single point for a collision would be faster than checking for a collision within a line or a rectangle. As it is now, using...
  8. R

    Sequence built of multiple sprites and Collision detection of them?

    Hi all, I'm trying to find some elegant solutions or links how to address this issue: I have a complex sequence which contains multiple sprite objects overlapping building an enemy. How would I do the collision detection for this? If the enemy has 3 legs (3 sprites) and 1 head sprite placed on...
  9. T

    Problem with collision help [SOLVED]

    I'm having a problem with collision, for some reason if you be in a exactaly spot (the border of the block) your character will slowly enter the block switching in colliding and not colliding, and then after a some progress he stops, i have no ideia why it happens, the white rectangle behind him...
  10. Marquitos3000

    GameMaker Tile Collision problem

    Hi, I´m making an RPG game and I use a tileset collision system. I have one tileset for the collision blocks and I have this in my character´s collision script: var _collision = false; //Tiles horizontales if (tilemap_get_at_pixel(collisionMap, x + hSpeed * 2, y)) { x -= x mod TILE_SIZE...
  11. S

    Windows Collision Event Limitations

    Hi, can someone please explain to me what the collision event limitations are? Background information: I have a player object which has a collision event which checks against a bullet object. The player or enemy object is loosing actually health on collision, but I can't destroy the bullet...
  12. Marquitos3000

    GameMaker Collision problem

    Hi, I´m making a tile based collision system and I use this script: var _collision = false; //Tiles horizontales if (tilemap_get_at_pixel(collisionMap, x + hSpeed, y)) { x -= x mod TILE_SIZE; if(sign(hSpeed) == 1) x += TILE_SIZE -1; hSpeed = 0; _collision = true; } //Cometer...
  13. TheRudolfGaming

    SOLVED Multiroom collision detection.

    Hiya! o/ Haven't encountered a bug this time, more brainstorming and seeing if I could get some advice or get nudged in the right direction. Essentially, So currently I am making a 4 player multiplayer game where the players will be able to move between different rooms. And by that I don't...
  14. A

    Physics Collision Masks Off By One Pixel

    *** Update 7/13/21 I received an email from Yoyo's support team. They've identified this issue as a glitch and it will be addressed in a future update. *** Hi everyone. I sent this to YoYo more than a week ago and I haven't gotten a response. I'm assuming it's a glitch but I guess I could be...
  15. S

    i need help destroying other(without using event collision)

    if(place_meeting(x,y,obj_enemy1)){ instance_destroy(other) } The code above is the one that isn't working. I'm sure you have the idea of what I was trying to do. I'm guessing its because its giving true or false output, but I'm not sure how to make any alternatives without using event...
  16. Storm1208

    Horizontal and Vertical Collision No Longer Working After Being Converted to Scripts

    I'm working on a finite state machine implementation for a platforming character. I initially coded the character normally (i.e. not using a state machine approach) but am now beginning to convert what I had previously implemented into a state machine format. To aid in readability, each...
  17. R

    SOLVED Collisions not working

    I have a player object and an invisible wall object, both of which are set to solid, but for some reason the player can just walk through the walls. It can also walk on top of them, and if it is in a wall it can't jump. The code is below, any help would be appreciated. (code from a step...
  18. Kezarus

    Spine bounding box and image scale

    Hi everyone! I need my bounding box to be a fixed size (256x256) for a combat grid system. I did that to everything but the characters. Now I'm having a problem with my Line of Sight system. I use image_xscale and image_yscale a lot on an object that uses a sprite that is a Spine skeleton. If...
  19. R

    How can I destroy an object when it collides

    ¿Cómo puedo hacer que cuando la bala golpee el bloque se destruya automáticamente en Game Maker Studio 2?
  20. NovemberTender

    SOLVED Player object stops falling if i hold left or right next to a collision object.

    Like i said above. i tried to look up solutions, or different tutorials on how to do movespeed. I've been scratching my skull all day, and thought i'd ask here, since i've gotten alot of help here before. i apologize if I'm unclear of what's the issue. here is the code: #region //Get player...
Top