collision

  1. Marquitos3000

    Windows COLLISION PROBLEM

    Hi, I´m making a plataformer game and I have this script for the player step event: var hor = keyboard_check(vk_right) - keyboard_check(vk_left); if (hor != 0) { if place_free (x + hor*2.5, y ){ x += hor * 4 } image_xscale = hor } if (keyboard_check_pressed(vk_up) &&...
  2. MrLostProphet

    GMS 2.3+ 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...
  3. 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...
  4. 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 +...
  5. 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...
  6. P

    GMS 2.3+ 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...
  7. Genesys Generation

    GMS 2.3+ 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...
  8. angelwire

    GMS 2.3+ 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...
  9. R

    GMS 2.3+ 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...
  10. 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...
  11. Marquitos3000

    GMS 2 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...
  12. 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...
  13. Marquitos3000

    GMS 2 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...
  14. 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...
  15. A

    GMS 2.3+ 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...
  16. 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...
  17. Storm1208

    GMS 2.3+ 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...
  18. 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...
  19. 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...
  20. 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?
Top