depth

  1. zendraw

    GMS 2 tiles & depth

    how do you apply depth to tiles so that player can go behind them when his bottom is above theyr bottom? and infront when his bottom is below theyr bottom. basicly adding the -y depth thing, or similar. only way i see is making diffrence betwean layer`s depths the same as the grid and making as...
  2. F

    Drawing sprites in the right order

    This here is supposed to be a wheat field (used sprites are placeholders). They're all sprites being drawn by one object, the positions being stored in an array. While assigning the positions it checks whether they're within a certain radius to get the circular shape. This means the sprite...
  3. I

    Z axis in 2D jumping on a platform. Help!

    Hello, I am currently trying to make my player object be able to jump and be able to stay on platforms. I am not using physics btw. Anyway, I found a video that explains this concept but I am struggling to implement this on my project because my depth and collision system is different. This is...
  4. Kezarus

    Fake 3D, 2.5D, depth = -y Code Analysis

    TLDR version: I find no performance issues between "depth = -y" and other "improved" algorithms and I would like some opinions. Thanks! =] Well, I made some performance analysis on 2 ways on making a Fake 3D effect. Both are well contained in specific objects that handles it all. You feed...
  5. sanghendrix

    Drag And Drop Moving behind and in front of a tree

    Hello guys, I'm new to GameMaker Studio and I'm still learning DnD. I'm trying to make a simple depth system that when I move behind a tree, the tree will be on top of the player and also change its alpha and opposite. But there's a problem, I think it has something to do with the box I circled...
  6. E

    SOLVED Draw End Event not happening

    Hi, I have a long standing project I recently moved from GMS 1.4 to GMS 2, and although the transition has been very clean, (props to the GMS 2 dev team on that one,) I came across what I’m thinking is a bug in GMS 2. My game is a top down game, where I am shifting the depth of the instances in...
  7. I

    GMS 2 How to recreate a depth value.

    I hope this is the right forum for this. I have some familiarity with GMS1 from my youth so I bought GMS2. With my main aspirations being the creation of a psudo3D game which utilized the depth feature in the Drag&Drop. I have seen some murmurings of a way to use a depth function within the...
  8. tedd

    SOLVED Layer/Depth of objects messes up when a room is re-entered.

    Hi! I've been having a problem in GMS2. In my game I have a trigger which the player touches in order to leave to the next room. This room also has a trigger which allows the player to travel back to the previous room. There is currently no problems when walking through room to room, it looks...
  9. P

    GML Depth in Isometric View

    Hello everybody. I have trouble updating depth of my object in isometric game: when the object takes the neccesary tile the depth works right but while moving the depth is always changing and the cube is dissapearing every step, "hiding" behind the house object. Here is the code of my step...
  10. flyinian

    SOLVED What causes an object to change it's depth?

    I have two objects that are in a room together. These objects are persistent and the room is an initialization room. in the initialization room: object1 is depth of 0; object2 is depth of 100; on room change, object1 changes it's depth. in room 1: object1 has a depth of 200 object2 has a...
  11. B

    Problem with depth

    I'm creating a solitaire game that has a deck of cards that when clicked deals out the top three cards from the deck. I want it so that the cards pile on top of each other so that the first card dealt is at the bottom of the pile and so on. I have managed to get this to work however when the...
  12. S

    GML How to depth sort tiles that are bigger than one tile as one object?

    I've come across a huge problem, basically, I can either create loads and loads of individual sprites and corresponding objects to then place in my room which is really not a good way, or I could use tiles. I have a tileset of grass and trees where the trees are 3x2 and made using the brush...
  13. Mig_PG

    Windows Isometric engine featuring : Depth Sorting - Z-heights - Ramps - Bitwise Grid/Collisions

    Isometric Engine Cool features so far : - Any number of floors / fevels - Ramps / Z-height - Pre-calculated depth sorting that handle any block dimensions. (Used a method described here : Isometric depth sorting) I did try a bunch of methods. I will talk about them in details when I next...
  14. Alexir

    GMS 2 How to walk behind and in front of objects with MULTIPLAYER

    I have an isometric/top-down game with objects that I want the player to walk in front of and behind. When they walk in front of it, the player is visible and obscures the object behind it partially. When they walk behind it, then the object in front of it obscures the player from the camera...
  15. B

    How do I get the "depth = -y" effect in a rotatable view?

    This is probably basic trigonometry but I have tried and failed. I would like to know "how far up" a point is in the view, even though "up" is no longer -y, since the view may be rotated. Thank you for any help or resources, unfortunately the ones I found did not help me since I did not...
  16. S

    full black screen at depth 99

    While I was trying to implement a way of showing object in order of their y-position, I realized that nothing with a depth greater than 99 was showing. It was as if some object had a depth of exactly 99 and was drawing a big black rectangle over the whole room. I used debug message to make...
  17. angelwire

    GMS 2 [Solved] HLSL 11 Shaders - Problems generating and using depth map

    I'm writing an outline shader in GMS2 using HLSL 11 and I'm having issues drawing and using a depth map. I have two shaders, a main shader and an outline shader. The main shader encodes the pixel depth into the Green and Blue channels and draws that to the depth surface (the red channel is being...
  18. DarthTenebris

    GMS 2 Asset Layer Equivalent of depth=-y

    Hello everybody, Title says it all, is there an equivalent to an object's depth=-y for asset layers? I'm making a 2.5d-ish game, and sometimes I'd like to let the player walk behind objects, however the asset layers are screwing this up. Thank you for your time.
  19. Binsk

    GMS 2 Instance Deactivation and Depth

    Howdy, Alright, so I've always avoided instance deactivation and generally handled the 'deactivation' bit myself. However I am designing an extension that requires I "pause" objects regardless of how the user of the extension has programmed them. Because of this I am trying to use deactivation...
  20. Gizmo199

    3D How do vertex buffers handle the 'z' in vertex_position_3d? [GMS2]

    I posted this on the sub-reddit but I figured id try here as well: So I have a vertex buffer drawing a bunch of sprites that are stacked one on top of the other in a vertex buffer. Each sprite has a "height" that I put into the vertex_position_3d 'z' function. Now everything within the vertex...
Top