depth

  1. 2

    Discussion Question/Suggestion: Is Depth Static Now? Can you change an instance's depth after creation?

    Is depth now static, or can it still be changed in a single instance after instance creation? I'm glad there's a layer system now, and that things appear mostly as they do in the room editor depth wise. However dynamic depth is necessary for some isometric, 2.5d games, and scaling objects that...
  2. Ariak

    Depth Ordering in GMS2: Priority List, Nested List-Grid, Binary List

    Update: I would like to point out that I wrote a techblog on z-tilting, a more advanced technique for 2.5d depth sorting. Check it out here: https://www.yoyogames.com/blog/458/z-tilting-shader-based-2-5d-depth-sorting @MirthCastle came up with an easy solution to replace depth=-y with layers...
  3. jobjorgos

    Legacy GM 2D top-down problem with depth

    Hi, I got the following problem in a 2D (fake 3D) top-down game with the depth order between objects: The movings cart depth = -160 (i cant expalin this number, i got it purely from just guessing untill it kinda works) The trees depths = 0 In all static objects (like trees and rails) i have...
  4. DukeSoft

    Legacy GM instance_place question

    Hi guys, I'm trying to get my player object to play different footstep sounds based on what he's walking on. The ground exists out of objects (big, round, shapes) and they _can_ overlap. Now the problem is that when I have 2 circles (1 grass, 1 stone), and they overlap, it seems like...
  5. E

    [SOLVED]Object spawning behind View

    I am running a script where when the player moves next to an npc and they hold 'up' a new view(1) appears above them. This also spawns in a new object into the new view that the player controls. The new object however is spawning BEHIND the new view(1) and I can't figure out how to bring it in...
  6. B

    Legacy GM how to maker player go up and down through the stairs

    in this image you can see when i am trying to make player go up and down through stairs but no collide with different object. what i want is i want player go through the depth controller object but other depth object like depth -2 or depth -6 will not interact to each others when player collide...
  7. stickyfingers

    Draw_background vs draw_sprite?

    Hi everyone! Trying to implement a tiled parallax background that only loads the specific tiles when needed and I can't figure out how to do this in a smart way using draw_background. 1. Is backgrounds drawn at a specific depth or is it infite? Can I draw a background behind an already...
  8. D

    Legacy GM Surfaces and depth?

    Hello, I have some objects in the screen and i need to have them with a text tag over them (centered). Those objects are moving around and using draw text slowed everything down so I used surfaces, creating a small surface in top of each object and drawing the text on top of them. The problem i...
  9. G

    Drawing Depths from Control Object

    So I'm making an isometric game and have recently found that my frame rate is suffering and a big culprit is probably the number of vertex batches being sent to the GPU. So I have set all of my objects to be drawn by a single draw control object as the buildings, trees etc. are drawn using a set...
  10. Master Cabalist

    Depth isn't working in Game Maker Rooms

    Hi, When I try to add objects to my room in Game Maker Studio it doesn't work correctly. So, I have two objects. One of them is from a .png sprite, the other is from a sprite I made by creating a new image and filling it with green color (it is supposed to be grass). I set the depths for...
  11. Khao

    Parallax Scrolling experiment

    I came up with a "different" way of approaching parallax scrolling this morning, one that deals with individual objects rather than backgrounds and layers. Basically, each object calculates the position it should draw itself by checking its distance to the center of the screen and its direction...
  12. B

    Legacy GM Need help for depth controller.

    Guys I am kind of having big problem with Depth controller and seeking your help. If you know how to make it or wanna share some code please help me to solve it. :) I need depth setters and getters function for my obj_depth_controller that controls obj_player and obj_enemy depth...
  13. David Richard

    Depth definitions

    I would like GM's interface to allow us to give the possibility to use depth definitions in the room editors. I over use depths in my games and sometimes get lost in which value is for which depth. Having a drop down list with our customized depth definitions would be great! Usually, once in the...
  14. B

    Legacy GM Need help with depth control or Z axis for player and enemy

    I am trying to make a building with depth. like when player or enemy goes through stairs they will reach top and when they are in top they will not able to fall down or collide with object with 0 depth. see the picture below. +2 is next top +1 is first floor or top of the building 0 depth is...
  15. trentallain

    Shaders Help: Converting the shader objects draw GUI event to normal draw event

    Hi, I need help converting the shader object's draw GUI event into a normal draw event, due to depth issues and the fact that it would take too long to re-code all the HUD to enable the mouse clicking on it. Here is the code for the object: //Create Event: //execute code...
  16. brda666

    Particle Effect - Depth Issue? [SOLVED]

    Hi all - firstly thank you for taking the time to read this! The issue I'm having (I believe) relates to depth for sprites and the pre-made particle effects. I have attached an image which demonstrates my issue. The image on the left is what I want - but the image on the right is what I'm...
  17. C

    Depth Priority Issue

    Hello, i'm having a major issue and i'll try my best to explain it. Say object 1 has a depth of 1 and object 2 has a depth of 0, so when overlapping, object 2 would be on top. when I click with my mouse on the area they are overlapping, I only want the actions of the top object to occur, or...
  18. Turgon

    Particle Depth - Isometric/Dynamic

    I'm making an isometric game right now, and am wondering if anyone has found a way to draw particles at their current isometric depth within the same particle system? E.g. when a bullet hits a wall it creates a number of particles on impact. The problem is that the created particles ignore...
Top