collision

  1. 2

    GameMaker place_meeting() Vs. instance place()

    What is the difference between place_meeting() and instance place()? They seem to do the same exact thing? Is there a difference?
  2. Monoxide5113

    SOLVED Top down movement

    Hello! I want to implement top down movement. Player object moves only in tile object's space! Don't you have any ideas? Thank you in advance! (I may say grammatically incorrectly because I'm not used to English, please understand. Thank you.)
  3. Shubol3D

    SOLVED obj_player.x/y doesn't give a real value?

    Hi all. I have "obj_player" - which is a submarine and I want to attach a screw to it with collisions. Draw event work, but not with collisions. The next logical step is to attach it as an object. I created obj_screw with a step event: x = obj_player.x + 79; y = obj_player.y + 8; The screw is...
  4. I

    Collision with moving object

    I'm working on a collision system, where I'm mixing tilemap collisions (based on the tilemap_get_at_pixel() function) and object collisions (based on the collision_rectangle() function). My tilemap collisions are working proper, and my object collisions are also working alright when dealing with...
  5. godwillforgive

    Blood animation on collision

    Hello Dear forum users! Please help, apologize in advance for stupid questions, I am too lazy (although I tried to find a solution to my problem, but apparently I wrote something in the search engine wrong). I have a sprite and an enemy object, I need that when colliding with a bullet object...
  6. S

    GameMaker Code for collision of a throwing a box (Apologies, I'm kinda new)

    I have this code here that allows me to throw a box towards the mouse but i would like to make a good collision for this box, like when it hits the wall or floor it stops, all i found was for zelda style games but never for one platform style side scroller game, sorry if this is something easy...
  7. 01Warlock10

    SOLVED Collision For Right And Down Movements 1 Pixel Off.

    Hey so I'm using a tile based collision system, but for some reason collisions for right and down collisions are one pixel off, stopping one pixel before the solid tiles, but it works just fine for the left and up collisions, always stopping when it collides with the walls, does anyone know...
  8. I

    Best collision methods

    It's my impression that the most used method to detect collisions is using the place_meeting() function. I was wondering, if this is the best function to use for environment collision (i.e. ground, walls, platforms, etc.)? I watched this tutorial, where he creates tilemap collisions using the...
  9. B

    SOLVED I have a coding problem making a "Button"

    Im trying to code a "Button" sort of speaking that when the player collides with it, then the button is set to on and a platform shows up, then the player can stop colliding but the button remains on and when the player collides again with the button then the button is set off and the platform...
  10. B

    GameMaker problem to check collision only once

    I'm trying to a simple object called "oActivator", a button sort of speak that when collide with the player, it changes from red to green and a platform (another object called "o_inv_block") becomes solid (before the collision it was transparent) My only issue is that when the player collide...
  11. P

    GameMaker Subtleties in Collision Events

    I'm trying to implement "tight" collision with solids using GameMaker's built-in kinematics and event-based collision. In particular, I want to: set object speed/direction in the Step event, and let the GM runtime to update the position. So I don't want to, e.g., x += speed_x to update position...
  12. R

    SOLVED Creation of Particles on Enemies

    Hi all, I'm having trouble making a particle happen. I'm developing an enemy that heals other enemies using Collision_circle_list(); to access hp variables and heal. To give feedback to the player, I wanted to create a particle for each enemy that is going around the circle, but an error is...
  13. joshua:)

    SOLVED help with collisions

    hi! im working on a new project. i am used to doing platform type games but i wanted to try a top down game. right now my character moves left, right, up, and down. i have like 4 lines of code for it. here they are if (keyboard_check(ord("A"))) x = x -1; if (keyboard_check(ord("D"))) x = x +1...
  14. MariusArmand

    GML mp_potential_step_object in combination with instance_deactivate_object/instance_activate_object

    Hi, I'm trying to use an mp_potential_step_object whilst excluding one of the children of the object. In this case I have the following objects: -obj_cat -obj_axis -obj_solid_obstacle -obj_solid_block_move_axis (child of obj_solid_obstacle) requirements: -obj_axis should avoid...
  15. T

    GML Checking place_meeting for multiple objects?

    Is there a streamlined way to check place_meeting for multiple objects? I'm currently using operators within an if statement (example below), but I suspect there is a better method. if(place_meeting(x , y, object1) || place_meeting(x , y, object2) ){ } Thanks in advance for any tips/advice...
  16. Alex May

    SOLVED Physics line of sight check

    Hi! I'm just getting started with gamemaker and gamemaker physics. But I'm a bit confused - there doesn't seem to be any library of functions for testing collisions in the physics world. Are we expected to create line-shaped game objects with physics fixtures to test for things like line of...
  17. 01Warlock10

    Precise Top Down 2D Tile Collisions in a Zelda-Like?

    Hey all, so I'm looking for a way to implement some Tile based collision into my gbc zelda inspired game. I'm sort of lost and would like a few tips and pointers on where to start, please and thank you. also, I'd like for my player's collision mask to not include his head. i'm doing this to add...
  18. R

    SOLVED strange collision behaviour as if code is running twice per step

    Working in GMS 2 version 2022.3.0.625 After messing around with unrelated variables, my collision code broke in seemingly two places: floors no longer reset the floor collision variable, and ceilings no longer entirely stop the player object's upward stretch/jumping alternative. I fixed the...
  19. H

    Multiple mouse collision area within an object

    I've made an object, wich contains all the bars(health, mana, stamina), is there a way to check if my mouse is over the health, mana, stamina bar?
  20. HaMeRoN

    SOLVED How to do сurve Tile collision?

    For example, I have such a tile set - I bought this project, did everything as written in the documentation. https://pixelatedpope.itch.io/tdmc/devlog/156556/converting-tdmc-to-use-tiles But the collision doesn't work properly. The creator of it now cannot check its work, and I cannot show the...
Top