depth

  1. J

    Maybe Culling? Maybe Mask? Maybe Depth? Maybe Draw_...????

    HI Community! My project is hung up on this issue. In the attached image 'You' can see (unfinished) level art, a character sprite (which has movement and animations implemented), an invisible collusion shape (keeping character from walking over things, and finally "my issue." The green...
  2. Z

    Layer Depth Assignment From An Object To Another [SOLVED]

    Hi everyone ! I have two objects : - The first one is the one the player controls. Named "PLAYER". - The second one is an object (rather a group of objects) distributed on several layers. Each layer has its own depth and each object from that group take the depth of the layer on which it has...
  3. Vinsane

    Having issues with drawing Ammo Counter (Depth Issue)

    Hi guys! I have an issue going on with drawing some font on top of my background object. The background object has depth set to - depth = -1 I then have an object that draws the score within the room. within the create event the object that draws the score has depth = -100 Under the draw...
  4. MarceloP

     Set object's draw order on "instance_create_layer"

    Hello guys! I'm working on a prototype and I've reached a moment where I'd like to create some objects on a Instance Layer. I called "instance_create_layer" and got what I wanted. But since I have more than one thing that will be "dynamically instantiated" I ran into a problem. When calling...
  5. Ghiliam

    Windows Sprite appearing/disappearing with "depth = - y".

    Hi everyone, I'm new of the forum, I hope I'm doing this right. So I'm working on an RPG and I wanted to add some depth in the Overworld. I started using the most simple method of checking wheter the player's Y was higher or lower of the other instances's Y, and then change the instances's depth...
  6. matharoo

    Discussion Built-In Z-Buffer Depth-Sorting In GameMaker Studio 2?

    Since depth = -y is somewhat obsolete now, do you think whether it's a good idea for YYG to make a built-in z-testing-based depth system? For example: the one Ariak made on the YYG blog. It is a great technique, and works well, but it has its limitations, like not being able to use image_alpha...
  7. BerserkMecha

    Isometric Depth and Camera Rotation

    I am making a game that has an isometric perspective and I want to have the camera rotate around the player character. Normally, I would have the depth for each object be -y*x, but as the camera rotates around the player character, that would cause problems with the depth of objects. Does...
  8. JDizzle383

    GMS 2 Isometric level editor[SOLVED]

    So I have been trying to figure out a method of creating a "depth detection" system for a level editor. What I mean is I need something like this: from these images: As it is my first time with isometric tiles and I don't know how to deal with depth based on what already exists in the...
  9. Erayd

    Windows Why not 'depth = y * -1' ?

    Exactly as the title says. I keep seeing people say not to use this for x, y and z but I don't quite understand. I'm working on changing how depth works in my game and currently this is what I have as I started the project on the old studio. It has a couple weird issues/quirks, but it generally...
  10. P

    GML depth issue

    so i am making a game with isometric art style.you can place buildings in it. now my problem is that when i have place a building and then a building above it the new building overlapse the old one what looks stupid. so how can i make it that it doesnt do that? i am working in gamemaker 8.0 pro...
  11. M

    Question - IDE Issues with depth (shader)

    hey there! for a shader i'm using 2 objects, one is set to the start (16000) and the other end depth (-16000) however, it always seems to stop at -500 if I go any lower than that, it just stops at -500 again. my game is isometric and so the objects have a depth of -y, meaning I would only be...
  12. cidwel

    Shaders Do shaders respect depth?

    Hi all! Long story short, I have issues with some objects not being rendered above of others objects with more depth. You can check it in this gif: The balls that come to the actor apears below him. This does not happen when I disable the shader. Even the bursts that comes next to the balls...
  13. C

    Gamemaker2 and depth - unpredictable

    I am trying to get a Hex-tiles system to work with Gamemaker2. (Im not using the builtin tile system) my overall system is: base-tiles are drawn all over the 124x124 tile map just as sprites. Then i want to draw location hex tiles on top of those as object instances. The tiles im using are...
  14. Vinsane

    Android Objects not appearing while testing game (DEPTH ISSUE?)

    Hi there, I've been toying around with the android side of Game Maker but I've ran into an issue while testing the build of my game. It seems that certain objects refuse to load correctly, it's almost like there is a depth problem or something. I've noticed that if I perform a cache cleanout...
  15. Fixer90

    Legacy GM Tile checking error

    So I have this code in the Room Start event, and the object is persistent: var walls = tile_get_ids_at_depth(999990); for(var w = array_length_1d(walls), i = 0; i < w; i ++) { instance_create(tile_get_x(walls), tile_get_y(walls), obj_collision); } What this does is makes it to where every...
  16. W

    GMS 2 How to draw a sprite when it's below a different sprite (visible through other objects/sprites)

    Hi all! I'm looking for a solution for a while now, but TBH I have no idea how to "bite it". I am working on top-down game and here and there have some trees spawned randomly around the map/room. What I want to achieve is when the player character is "under" the tree sprite (or any other sprite...
  17. S

    Legacy GM Problem with effects depth

    I recently updated game maker to v1.4.1773 from an old version (i don't remember which one), the problem is that on every object in which i have an effect, the effect depth goes below the object when it's set to go above, and just the same when i set it to go above (it goes below) is this a bug...
  18. M

    depth broken?

    So im currently working on a game and i have 2 items my trees with a set depth of -10 and my player with a set depth of 10 now only the player has a draw self event in the draw event. but the tree does not, is their any reason the depth shouldn't work? my trees appear below my character for...
  19. A. DeVivo

    parallax background on the y axis

    Hey all! First time posting! Fairly new to GM2 but learning. In order to create depth on an island level, I'd like the horizon level of the ocean background layer to somewhat follow the player/ be fixed to the camera as the player/camera descend the y axis. I've been toying with lerp to do...
  20. Hudsonius

    Where to set depth in GM2?

    I'm new to GM2. I used the old one a lot, but GM2 I just got two days ago. Anyways, I was wondering where you set object depth in the object's properties. I know you can just set an event saying: depth = [your depth]; but this messes up room editing and it makes the object seem weirdly placed...
Top