1. B

    Not Sure if I should Stick With GM or not :(

    I'm facing a bit of a crisis of confidence at the moment, and I'm not sure what the best option for me is. For the past several months I've been working on a 'retro', pixel art, RPG, using a staggered isometric projection in GMS 1.4. This has been my first serious attempt at coding a game and...
  2. Anixias

    GMS 2 [Solved] 3D Z Testing doesn't work GMS2

    I am using vertex buffers to create and store primitives and models, but whenever I use vertex_submit, the entire vertex buffer is rendered at a single depth, in the order I submit them. This means that nothing can really phase-through anything else. It's not too hard to set objects at the...
  3. Shadowblitz16

    GMS 2 (Solved) object depth increasing as created?

    is there a way to make object stack ontop of eachother as they are created? as of right now they hind behind each other and it makes it so I cannot see my objects. EDIT: ok so basicly I have 3 layers in this order top to bottom.. Active - the current active gui widget Inactive - the rest of...
  4. R

    GMS 2 [SOLVED] black screen when using really low depth

    Hi All, My objects have a depth = -y and when i walk down like 15000px my screen turns black. Is there something to do about that? If not, what is the max depth i can use? ANSWER: There is a minimum and maximum layer depth of -16000 to 16000.
  5. P

    Ordering of Instance_Create

    I am currently trying to make a drawing game and i am still fairly new to game maker. I have made it so that when the left mouse button is held, an new instance is created drawing a line.However, when working with other colours, the layering is in the order of the the code. E.g if...
  6. R

    GMS 2 What is the good way to handle tile & object depth?

    Hello all, I have some trouble in finding out what the correct way is of depth in GMS2 The fences are tiles in 2 different layers, de upper half is above the NPC's layer and the bottom tiles beneath them. I want the characters to be able to walk to the fence and stand really close to it, just...
  7. Kaliam

    Discussion Drawing at a depth of 0 dramatically decreases performance?

    So I was just testing a few things on a quick test setup I have for testing the speed of scripts and I found something very strange as you can probably tell by the post title. Here are some screenshots of the performance and code for each set up along with an instances counter. The white dot are...
  8. FriendlyCosmonaut

    Depth Sorting for GMS2 (Alternative to "depth = -y")

    GM Version: GameMaker Studio 2 Download: Example File Links: Asset on Marketplace Summary: In GMS1, "depth = -y" served as a simple, fast, dependable way to sort depth dynamically, especially for beginners. In GMS2, with the introduction of layers, it's easy to run into some trouble with this...
  9. M

    Windows Clarity on layers & depth?

    I'm trying to wrap my head around the difference between layers and depth. It appears to me that layers are manageable while depth is not, being automatically determined by the engine, or something? I've read the manual but I'm still confused. I know what a layer is, like Photoshop layers mind...
  10. Ziberteck

    HTML 5 Depth

    So I've been noticing that there is an issue with depth in game maker html5 edition what doesn't exist in the windows version. To reduce lag, as one should, i have a script that limits the objects that are active on the screen. // code ran through the step event of a persistent controller...
  11. mar_cuz

    Legacy GM Isometric Depth Question

    Hi GMC, Sorry I know this is an age old question. I'm working on an isometric game and I want the player to walk in front of and behind tiles. I know the depth = -y trick. But that only works if I use objects and I want to use tiles. My rooms are going to be quite big with a lot of other...
  12. B

    depth won't update on room change

    Hey guys, I'm making an rpg in Game Maker Studio 2 and I have a problem. For dynamic depth I use the code: depth = -y If I go through a door to a new room everything is fine, but if I return to a room previously visited all objects will always be drawn over the player character regardless of...
  13. H

    How to change sprite depths for character to move around an object?

    I have my player with a mask around his feet (that way his feet check for collisions, allowing his head to poke through). However, since the object has a front and back, I would like for my sprite to go behind without walking down through the planters, and get in front of the planters too. The...
  14. H

    Changing object depth for player to move around the object?

    I'm trying to make my character sprite go in front, but also behind both of the planter sprites. They are currently set at 0 depth, whereas my player is set at 1 depth. How do I change the depth of the planters depending on where the character goes?
  15. S

    Windows Depth Not Working Correctly

    My character won't stay behind the fence, i'm new to coding, and i'm having trouble fixing the code i'm using to allow him to stay behind the fence even when attacking...
  16. jobjorgos

    Legacy GM [SOLVED] always show object on top of other object which has relative depth

    Hey I want obj_boots always be shown on top of obj_peg (the player) in a 2d top-down (fake 3d perspective) game. obj_boots Step Event: depth = (obj_peg.depth + -1); But this doesnot work so I wanna make sure if anybody can confirm if this piece of code is right? Greetz jobjorgos
  17. S

    Drawing on top

    I currently have an enemy which creates a gun when it spawns (create event). I would like the gun to sit on top but I can't seem to get this to happen. Even though the depth of the gun is lower than the enemy, it is still hidden behind. How do I fix this? The gun is attached to the enemy and...
  18. M

    Legacy GM Objects behind other objects are still pressable

    Hi, I have a simple UI consisting of a ball, a score bar at the top, and a back button in the top right. The ball and button are supposed to be pressed. I recently wanted to add a background object, which when pressed, (when you miss the ball) turns red and takes you to a another screen. However...
  19. A

    GML SOLVED Parent object's depth != children objects' depth?

    Hi all, I have a parent object (magic projectile thing that the player can shoot) with some children objects of it and its all working fine, except that I want to make all the children objects have a specific depth that I assumed could be set in the parent object's depth. But when I change the...
  20. K

    GMS 2 [Solved] Question: One Layer, Multiple Instances with different depth?

    Edit 1: As far as i can tell layers work in a way that they have a fixed depth and only can contain instances with that depth. As a result creating instances on a layer has little effect when you change the depth of them afterwards. To work around this i created a global variable which i made an...