• 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 check

  1. krill

    GML Clicking one of multiple copied objects

    I have a layer with multiple instance of the same object, and I want to be able to select any individual space. if mouse_check_button_pressed(mb_left) && collision_point(mouse_x, mouse_y, emptyObj, true, false) { layer_set_visible(slot_layer, false)...
  2. J

    GML Visual Power Meter Collision Detection Issue

    Hello Gamemaker community! I recently started using Game Maker Studio 2, and I have been working on my first game based on the "Make Your Own Endless Platformer" tutorial series. Unlike the tutorial, I integrated a stamina feature and have been working to add objects that assist with stamina...
  3. thejosving

    GameMaker Is there a way to discover the exact point where the collision happened?

    As the title says, is there any way for me to find the point, in pixels, where one object "touched" the other?
  4. O

    Collision finds only oldest instance

    How come this code only finds the oldest instance of oEnemy? var _inst = instance_nearest(posX, posY, oEnemy); if (_inst != noone && point_distance(posX, posY, _inst.posX, _inst.posY) < 50) { instance_destroy(_inst); instance_destroy(self); }
  5. ashurlee

    Collision and Ds_list bug

    Can anyone see anything glaringly wrong with this code that could be causing collision checks to not always trigger? This code is written in the hitbox for the ability. I have tried multiple solutions such as increasing the size of the collision mask. Clearing the list on creation. Increasing...
  6. 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...
  7. C

    SOLVED Collision checks in local variables executes slower?

    Hello! I found something interesting while messing around with my code. Here it is, clearly following one of Shaun Spaulding's tutorials: In the Step Event: #region//set controls key_left = (keyboard_check(vk_left)) || (keyboard_check(ord("A"))); key_right = (keyboard_check(vk_right)) ||...
  8. A

    /// @arg x /// @arg y return place_meeting(argument0, argument1, oCollision); not working

    Hello I have oCollision and everything prepared but it just gives me this error when I try to run it and Idk what to do please help I did everything properly and the red signal error doesn't show up it shows as it works but then it gives me this error telling me it's wrong please help...
  9. A

    SOLVED collision check for draw_sprite_ext?

    I'm going to make a game with a lot of sprites. Making all sprites as objects creates a lot of trouble. I wrote the Main rules in a rule object and managed to draw it with draw_sprite_ext. However, I cannot check Collision. Briefly; How to make a collision check of a sprite drawn with...
  10. Lens

    SOLVED Problems identifying specific object and thus changing its variables.

    Good morning/afternoon/evening! :potato: I have many instances in a game called oBomber. Also I have an object called oTank, which has a range (collision rectangle). Once oBomber gets inside the oTank's collision rectangle, it should lose HP (to make it simpler, as for testing, now it just...
  11. FrostyCat

    Asset - Scripts Extended Collision Functions

    Extended Collision Functions Companion scripts for built-in collision functions Overview Extended Collision Functions are enhanced versions of built-in collision functions. You can now easily check for collisions with multiple unrelated objects/instances at a time, and optionally pass in a...
Top