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

object coordinates

  1. M

    SOLVED Create objects at random but only on specific DS grid values?

    I am new and working through tutorials learning so I apologize if this may be an unnecessary question but so far I have been unable to find an answer within the manual or google. I am currently generating random play areas using a DS grid for specific values for walls and floors and its working...
  2. M

    Issue with Bullet Object, Lagging Behind Player Object Movement

    Hi all, I have a player object which holds a gun and a separate object for the bullets fired by the gun. I have it set up so that the bullets fire from the tip of the gun as they should. However, when my character walks and jumps, etc. the bullets lag behind and no longer fire from where I want...
  3. S

    Object and path not in correct x y coordinates

    Hello All, New to GMS2 and am having a problem with an object and its path, so I'm displaying the player xy position and the enemy xy position on the screen to help figure this out: Enemy is following a vertical path and displays x as 120 ,but if I move the player to the same horizontal...
  4. R

    Remove lives when an object reaches a specific location on the y coordinate

    Hi, I'm trying to get lives to be removed when an object reaches a specific coordinate on the y-axis. I'm using: if (object.y == 800) { llives=lives-1 } It's not working at all with this. I've tried if (object.y > 800) { llives=lives-1 } Which randomly seems to increase the number of...
  5. S

    Best way to pin an object and track movements?

    Hey all, new to the community. Very excited to be here. When doing things like arms and torsos that rotate from a top view, what would be the best way to track the objects all together? It doesn’t seem like parent/child thing is the right thing to do as it’s mostly for inheritance. Here is the...
  6. K

    [SOLVED]Object and it's shadow, help needed!

    Scenario is this: I have an enemy object set in the room, and when it's created it "spawns" a shadow object. The shadow object is set to have the same coordinates as the enemy -> enemy has a shadow. This works until there's more enemies. Whenever there is more than one enemy, all of the shadows...
  7. V

    Game Mechanics Make objects follow the view regardless of view angle

    Hello there, I'm new to this forum, and I entered here so I can look for answers. So I'm working on an engine that allows the camera to move and rotate in many angles. I'm trying to make an object where its 'view coordinates' stay constant regardless of view angle, in other words, make the...
  8. M

    GameMaker how to set object to go center of the camera?

    Hey I want my an object to go center of the camera. I tried this but it is not working. :( I am using Gamemaker studio 2 x = (camera_get_view_x(view_camera[0]) + camera_get_view_width(view_camera[0]))/2; y = (camera_get_view_y(view_camera[0]) + camera_get_view_height(view_camera[0]))/2;
  9. P

    GameMaker [RESOLVED] Attach a Strength Score to Each Character?

    I'm making a single-player game where you control a group of 3-10 characters, and I want them to have strength scores (which are just numbers) attached to them as they move about. That way when you split your team into groups, you can add up the collective strength of each group. Anyone know...
  10. A Random Creator

    Legacy GM [Solved] Get an object's coordinates on the GUI layer

    I have a chest object in my game that shows what is in it when you click on it. The problem is that I want the inventory to be drawn on the GUI layer but still next to the chest. The issue is, I don't know how to find out where on the GUI layer the chest would be. Any help is appreciated! ;)
Top