object interaction

  1. B

    GMS 2 How to check if an object is in front of the player object in order to interact

    For example: There are my Player and NPC, they have perfect collisions with each other. If I want to interact with the NPC, how do we check if he is in our direction? is there a function that can help me with that? (also, I want to be able to interact with the NPC even I am couple pixels away )
  2. A

    GML Object inheritance challenge...

    So I'm looking for advice on a good way to go about this challenge: I currently have a game where there's shields that should be able to destroy both projectiles (One object set with parent/children) and some ships (Another object set with parent/children). I DON'T want ALL projectiles to be...
  3. AtomicToilet

    Legacy GM Interacting with objects sort-of works, except...

    Holargh! I've written some code that works pretty well (I'm prototyping a 2D side scroller investigation thingy) except it displays the first line of text every time the player passes by the object in question. OR, it disappears after a few button clicks. Like thus: and this (though this is...
  4. B

    GMS 2 Need Help With Player True/False State

    Hi, I'm new to GameMaker and have run into an issue. I want the player to be able to interact with multiple objects like doors and signs with a single button. I figured the most efficient way to do this was to have the player character enter a state that the interactables would then respond to...
Top