collision

  1. mcglubski

    GMS 2 Array for Collisions HELP! [SOLVED]

    Can someone help me simplify this into an array or something else? Even with years of experience with GMS I still struggle to understand simple arrays, especially after coming back to it since buying GMS2. I feel like this should be easy but everything I try doesn't work. If someone could...
  2. Yizzard

    Windows Collision Events not showing up in Debugger

    I've had this problem for a very long time now and have not been able to find anything about it anywhere. Whenever I have a break point in a collision event for an object (example: my collectible object has a collision event that when it collides with a player it is gotten by them) it doesn't...
  3. FranFox

    Detect player landing

    Hi everyone! I'm trying to detect the moment when player lands on a platformer game but I don't understand why my code isn't working. // We've just landed? if place_meeting(x, y + 1, o_solid) and !place_meeting(x, yprevious + 1, o_solid) { show_debug_message("Landed"); } This should work...
  4. Daniel Westberg

    Android GooglePlayServicesExtension & Firebase - GooglePushNotificationsExtension Collision (Duplicate Resources)

    I get a build error after I've added both GooglePlayServicesExtension & GooglePushNotificationsExtension _________________________________________________________________________________________________________________________________________________________________________________ First this...
  5. P

    Collision with particles

    Hiya! I'm making a top-down shooter and one of the weapons is a freeze gun. I've programmed the weapon using a particle system, but now I can't figure out if I can actually make collision events with particles generated by a particle system. Is that even possible? Is so, how do I do it? Or is...
  6. If Programable_Matter

    Elementary Question about Masks and Transparency

    Simple Question. For some reason I forgot how to perform this action... I have a sprite which is a circle and is transparent inside (circle inside is transparent)..... Objects are inside the circle in the transparent area... however when I add a collision event with the object wihitin a circle...
  7. FullCup

    SOLVED Instance_place doesn't work for platforms (one way platform)

    I'm trying to make a platform collision (only from top to down / falling). Well, this code works but when the player collide with other platform inside, he ignores the bottom collision and he goes through it. I Tried to use 'instance_place' but it doesn't work. What i want is to check the...
  8. Lens

    SOLVED Having problems to identify multiple objects with a collision rectangle

    Hello, good morning/afternoon/evening! I'm using a collision rectangle to identify other object instances around the room, and, while there is any of those specific objects touching/being inside the rectangle, the main character (whose posseses the collision rectangle) will change a variable...
  9. M

    Step event collision doesn't work

    So in my game, I can't use Collision Event for obj_enemy because obj_enemy needs to be marked as Solid, and that will stop it upon any collision. So I put the following in Step event to work around it: if place_meeting(x,y,obj_limit){ if escape=false{ direction = image_angle+180 } } The idea...
  10. P

    Object IDs

    Hello, Basically I want to make a system in my game where when I press spacebar a cone in front of player appears and if some object is in front of the player and the cone touches it, it will be collected into inventory (and dissapears from the room). If I simplify what I mean by object lest say...
  11. 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...
  12. Jochum

    GML Show sprite on collision only (Shader?)

    Hey everyone, I'm trying to show a sprite on the place that it collides only. This way I can create a type of shadow from one planet on top of the planets underneath: The shadow is created by showing the same sprite, making it black and lowering the alpha. Screenshot: Hopefully, someone...
  13. Axl Trauts

    SOLVED Collision on tiled objects?

    Hi I have a flammable set of objects (children of parent par_flammable) that when they collide with an ignitier (i.e. a fire object) they start to burn and set a fire variable to 1. I also have a check that when a "fire = 1" flammable object collides with a "fire = 0" flammable object, it turns...
  14. Fluury

    Figuring out a point of collision between two bounding boxes

    Heya. Following idea: I'd like to create a particle effect at the point of collision between two bounding boxes. Say you've got yourself a sword attack and your classic enemy, and you want a spark to appear at the location the sword attack hit the enemy - How would you figure this out in a way...
  15. White_Fox

    Grabbing ledge with tilebased collisions

    Hello everyone, i'm following a course on Udemy on creating a tilebased platformer. For my personal project, i'm trying to create a tilebased platformer with a parkour"ish" vibe. I've manage to add a "grab ledge" state and it's working well on some aspects, but i'm not 100% satisfied on how it...
  16. M

    help with collision from certain direction

    Hey guys, this seems like it shouldnt be too hard, but anyways I can't wrap my head around it. So in my top-down game, if the player is blocking with a shield, how do I make it so that enemy bullets (obj_arrow) coming from the direction the player is facing to, are blocked on collision with the...
  17. C

    SOLVED 2D topdown tile collision, stuck to diagonal move

    Hello there, I'm new here. I make tile collisions everything works fine, except when I have to make diagonal movements when the bbox_top or bbox_bottom collides with a tile. I don't understand what it's like šŸ˜­. At the level of my code I have my Tile_Collide file which is a function that takes...
  18. Hypotakt

    SOLVED Neat collision handling with using sprite masks (in GM:S 1.4)

    Hey guys, I am obviously searching for a smooth collision handling system for my game. I spent a lot of time today, finding a good way to implement, but had no success yet. The game character is moving per direction and speed, but it has only 4 different directions in sprite (left, right, up...
  19. M

    collision between two objects always stop both from moving, while there are no Actions to do so

    So in my game, a bullet object should pass through enemy objects. it should flash (the bullet) when it passes thru an enemy. however, if i add a collision event between the bullet and an enemy object for either one, they both freeze in their place (stop moving). the collision event can contain...
  20. M

    D&D Collision Issue

    I'm not even sure if I'm posting in the right place, this being my first post, but, I do not know how to solve an issue I am having with my game. I would really appreciate any help. I want to make my player object restart the game if it collides with a certain object if the space bar is NOT...
Top