collision checking

  1. 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...
  2. B

    collision situation.

    Every time when the player model collides with the other character's (objects) collision, it works, but whenever it collides with the other character's collisions, the player character get's STUCK. I want the character's collision to be SMOOTH as they touch each's other's collision and not get...
  3. S

    GMS 2 AI Platformer movement - tile based collision / AI Movement issue

    Afternoon all, I have just added enemy movement and it works as far as the enemy moving backwards and forwards, changing direction when it hits a wall. I am trying to extend this to have the enemy stay on a platform when required but at the moment the furthest I have made it results in a jerky...
  4. R

    GML [SOLVED] Help Detecting solids

    Im doing a sideview platformer, trying to get the character to walk up a slope, but the issue im having with the place_free command, if im testing for collisions on the right side of the play, place_free(x+1,y) checks the entire players right side, from top to bottom, so i decided to use the...
  5. V

    Legacy GM Code works in Collision Event but not as collision check on Step Event

    Hello everyone. I have been struggling for a while to develop a viable method for top-down 2.5D jumping/platformer engine (think SMRPG, M&L mario series) and, as my prototypes had serious issues, I went for free examples to learn. I did found two that were very effective and could be...
  6. W

    [solved]Collision Circle not registering right

    Okay so this is the nice sphere I get when I use thsses values to make one around my attacking player 100x100 sprite dimensions. if not(attacking){ exit; } else //when you collide with the enemy if(image_xscale == 1) and(attacking == true) and( collision_circle(x+sprite_width/2, y, 100...
  7. F

    Fractional Collision Checking

    I have noticed something with GM:S and am not sure if it's a bug or me not being aware of something. Basically, I'm trying to make it so that my collision checking logic works with fractional speeds (0.5, 0.18 etc), however, I have noticed that collision checking functions such as place_meeting...
  8. H

    Collision Issue

    I have a game I'm working on with 8-direction movement. This is the current code for movement: ///Input | Movement | Shooting //Input for movement up = keyboard_check(ord('W')); left = keyboard_check(ord('A')); down = keyboard_check(ord('S')); right = keyboard_check(ord('D')); xDirection =...
  9. CardinalCoder64

    GML Pixel-Perfect Object-based Collision

    GM Version: All Target Platform: All Downloads: (Towards bottom of post) Summary: This post is for anyone who needs help with collision checking when it comes to pixel- and subpixel-perfect accuracy. This isn't grid collision but I feel it is a more efficient way of implementing object-based...
  10. D

    GML [SOLVED] Singular Collision Testing?

    I'm making a physics based platformer that has a mechanic where when you touch a certain object, your gravity switches. I'm wondering how you can make it where it only activates once when the player touches the object, but then the player must re-enter the object before activating it again. The...
  11. F

    Create an object during Quest

    Greetings, I am new with game maker and I try to make a simle rpg test game. I want to create an object in a specific location of the map IF the player interact with specific NPC. To do that I was following a youtube instructional video but I discovery a bug on it. I will post here the code I...
  12. V

    GML How to check for a collision with one specific instance just created?

    After reading the documentation on collision methods I couldn't find a complete solution for this situation: I have an object 1 with a create instance action at its create event. That action creates an instance of an object 2. Then I need to make a collision event (or check for collisions in...
  13. D

    Getting point in collision_circle.

    Is there a way I can get the specific collision points when the the collision_circle function returns a collision? Or is the only way to do it is to check for collision in every point in the circle after the collision within the circle has registered?
  14. K

    NEED HELP WITH COLISION DETECTION

    Hello,I Am Using Gamemaker 1.4 And I Am Working On A Platformer,Now I Want To Detect When My Player First hits the ground.like the very second he hits the ground. I want Some Kinda "IF STATEMENT" That Detects For The Very Second The Player Collides With The Ground.not If He Is Colliding At...
  15. Y

    GML Collision issue for object with variable size

    I am making a 2d platforming game where the player character has a different height when attacking and jumping, which has lead to the player potentially getting stuck if jumping beneath a platform and attacking as his jump animation body is directly underneath the platform. I have not found a...
  16. TonyStr

    Check for physics collision

    Hi, I'm using gamemaker's built-in physics system, and i need to check if the object is or will be colliding with another physics object. The code I'm currenly using works great, however i collide with every sprite because i use collision_line. I have also tried using place_meeting, but that...
  17. L

    GMS 2 Collision offset?

    Hi, this would be my first comment on this forum (and my first time using GMS). Nice to meet you all. :) So... Right now i'm trying to make a platformer game, checked a few videos and ended with this: // Character variables. Gravity = 1; Speed_Movement = 5; Speed_Jump = 7; and this... //...
  18. D

    How to access variables in all instance besides the one colliding with collision event

    I'm having an issue with my infinite runner. The game spwans "obstacles" that the player moves with the arrow keys. I'm using the collision event in order to make the obstacles stop when colliding with the player. The problem is that GMS adresses variables on 1 v 1 basis during the collision...
  19. T

    Game Mechanics mouse aiming in a 2.5d game

    Hi, i´m trying to get a good mouse aiming in a 2.5d game. I want to shoot a laser. The laser shoots through enemies and stops at a wall The laser gun is above the ground on top of the player and is controlled with the mouse. The collision boxes are only the lower part of the objects, so they...
  20. Nocturne

    Asset - Scripts Collision Arc with L.o.S.

    DOWNLOAD HERE Ever wanted to check to see if there is a collision within an arc of a circle or create a "cone of vision" for AI? Well, you can, and easily, with this asset! You do not even need to change anything, just add the scripts and call them like any other GML function! This asset...
Top