collision

  1. zendraw

    GMS 2 precise collision transperancy threshold

    if you rise the threshold on the transperancy, in precise collision checking, does that ease the burden on collision checking?
  2. Rare Truffle

    GMS 2 Multiple Object collision possible?

    Hey yo! I've searched through the forum but couldnt quite find a fitting solution for my problem. I hope one of yall can help me: I am making a simple 2D Platformer on GMS 2. I wrote a code, so if the player gets near "Obj_Block_1" the Player collides with the Object. In other terms it becomes...
  3. WimpyLlama

    Collision with two instances of the same object at once.

    For collision with walls and such, I use this method. //Movement moveX = (keyD-keyA)*walkSpeed; moveY = (keyS-keyW)*walkSpeed; //Collision //Set sprite bbox variables var sprite_bbox_top = sprite_get_bbox_top(sprite_index)-sprite_get_yoffset(sprite_index); var sprite_bbox_bottom =...
  4. DromEd

    GMS 2 [Solved] A timer to continue even when the conditions don't meet anymore ?

    Hello the Game Maker community. A short introducing before exmplaining my problem : I am a new user from France (excuse the not great english please) and I enjoy spending time on Game Maker :) I searched for the following problems on the forum and Google, but I could not solve it. I would like...
  5. W

    SOLVED Creating a collision system with a Virtual Joystick

    Hi! I've just recently started out with GameMaker and was wondering about collisions... There are many tutorials on typical x and y collisions, but I am looking to implement these with a virtual joystick, and I cannot seem to find any help online. It would also be nice to have smooth collisions...
  6. S

    How to generate collision masks for each sprite part?

    For my animations, I'm using a sprite sheet. This means that I use draw_sprite_part() and just change the X and Y to essentially move through each box in the row for it to look animated. I am trying to implement a hitbox and am having trouble generating the collision masks. I have a separate...
  7. S

    SOLVED place_meeting collision detection flip-flopping between true and false, with the same value

    I'm working on a little top-down RPG kinda game. And am making a path-finding system for npc's. Cutting the fluff, i'm having trouble with some collision detection. I was debugging for several hours until i narrowed my problem down to this. What you're looking at here. Is a path generated with...
  8. Posho

    GML Simple Problem: place_free() checking

    Hello, I'm stuck with the simplest of things. I'm looping through the whole room to add objects on empty spots like this: for (var i=0; i<room_width; i+=len) for (var j=0; j<room_height; j+=len) if (place_free(i, j)) instance_create_depth(i, j, 8, obj_water); ^ THIS...
  9. RipRoarinBoogerBenis

    Rotating Rectangle Collision

    Currently I am using a script to handle box collisions, however I an realizing I need my box collider to a rectangle, and to be rotatable, as to better simulate the movements of a vaguely oblong tank without things clipping into other things. Unfortunately, I think this would either involve...
  10. David Lorenz

    GML [SOLVED] Get ID of child objects

    Hello, everyone! This would probably be obvious for some of you, but I'm having troubles. I have a dialogue system that uses the collision of the player object with a parent object that have all characters as child objects in order to take different text from each. var inst =...
  11. DarthTenebris

    Windows Player Clipping to Wall

    Hello everybody, I am currently working on a 2D platformer, and have run into an issue. The player seems to be getting stuck in walls when walking left, but not when walking right, and I don't have a clue why. Perhaps a fresh set of eyes can help me. Create Event: Step Event: Any help will be...
  12. oldnoob

    Quick question about PLACE_MEETING() [RESOLVED]

    Dear all, May I just verify how place_meeting works please (I haven't found a definitive answer online). Assuming a player's sprite (32x32) origin is top-left and you check for place_meeting(x,y+1,obj_block), does it just check the pixel below obj_player (at Y 33) or all pixels from 1-33 (not...
  13. Reyniki

    GMS 2 Platformer Enemies Spazz out on top of Player [SOLVED!]

    [EDIT] My previous concern was solved but now I'm kinda lost on how to make the enemy sprites stop spazzing out when they're overlapping with the player. Dunno if any line of code would show the problem but here's the enemy's chase after the player code: dir = sign(oPlayer.x - x); h_sp = dir *...
  14. Andrew Simms

    GMS2 Can't recreate collision bug, but it still exists

    So I have this little arcade enemy swarm game. The combat system is that when you press the button, the protagonist is unmovable but summons a magic spell that you can then control directionally and detonate over nearing enemies to clear them. This will then create an orb object that shoots back...
  15. Christopher A. Orestis

    Not collision with var = Do something...

    Hello, I would like to know how do the following: (This script is not working, would like to know how to fix this) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// var...
  16. a_lone_

    Windows Game freeze upon colliding with a corner.

    I've spent a while getting my movement code with proper acceleration and smooth collisions to work with as a little code as possible, and while I was doing so my ideas changed a lot and the code still has remnants of old organization. At some point in the process, I discovered that whenever I...
  17. Deadly Serious Media

    GML Changing the fixture shape

    Hey everyone! So I'm attempting to include som physics objects in my game but I'm having a bit of a tough time with a sliding door. Non physics object collide just fine because to collision shape matches the image_index. Physics object are a different story. Now I may be going about this all...
  18. Michael Franklin

    Moving platforms

    I have a character named judy: /// @description City physics //input left = keyboard_check(ord("A")); right = keyboard_check(ord("D")); jump = keyboard_check_pressed(vk_space); //Movement var move = right - left; hsp = move * walksp; vsp = vsp + grv; //jump if (place_meeting(x,y,ocity)) or...
  19. EZTALES

    Legacy GM need some help with collision

    hey yall, needed some help with a little issue I'm having, I wanted it so that when the player punches an NPC it will start a fight against them, however, when I do nothing appears to happen. This is the code that I have below and I was wondering what I did wrong. any help is appreciated...
  20. M

    Nearest Instance in Player Input Direction

    Howdy. I'm attempting to find the nearest instance of a spring object—from the current spring object that the player object is colliding with—in the direction of the player's input, and then move in that direction. I have statements to handle different player states (the code for the ascending...
Top