depth

  1. A

    GML SOLVED Need help changing object depth during sprite animation

    I have 2 sprite-objects: the player one and a magic spell one and I want the magic spell sprite-object to "wrap around" the player. to accomplish this I want the first few subimages of the magic spell sprite-object to draw behind the player object, and the rest of the magic spell subimages to...
  2. psyke

    Question - Code Why explicitly changing depths...

    Why explicitly changing depths also changes the depths of other layers? Take a look at this code: AddHitEffect is just a function to create an instance using instance_create_layer, but when I change the depth of the Trail object, it permanently changes the depth of the layer...
  3. I

    Question - Code Depth and Layers in GMS:2

    GameMaker 2 overhauled and improved the layering and depth system. At the moment I can't get my head around the new system. I've read the manual regarding how the new layers work and how its more efficient, but I just can't seem to get the objects and tiles in my room to draw in the correct...
  4. I

    Isometric Age of empires like depth problem

    hello this is my first post, i don't know if i have to present myself in another section (in that case sorry). i've been experiencing some top down pov but i would really like to make an isometric game ( i have basic skills and i've been coding since almost a year), problem is that anything i...
  5. P

    Question - Code how to [tile_set_depth] in GMS:2?

    as the title says.... the function tile_set_depth got removed from GMS:2 so I'm having a hard time now getting my top-down RPG game to work with walls made from auto-tiles and objects/players "behind" these walls the main reason I moved to GMS:2 was auto-tiles so how is it possible in GMS:2 to...
  6. S

    3D Wrong sides of 3D cube being drawn

    I'm working on a new 3D puzzle game for iOS. When running the game on my iPad, it appears that sometimes, a few sides of a 3D cube, which are drawn last, will appear in front of other sides, even if they are on the opposite side of the cube. Each cube is made of 6 primitives. Here is how one...
  7. M

    GMS 2 Question about new Layer System and Depth

    Hey there~ I've searched for an answer in the manual, the forum and on tutorials but i didn't found one. With the new Layer System in GMS2, i am wondering how to get a similiar effect like with depth = -y i know i could just use "-y" but i am worried it might be slow and not the way it's meant...
  8. Ayziak

    GMS 2 How to set tile depth and alpha in GMS2...?

    So I'm hoping to be able to set tile alpha dynamically in game. However in GMS2, functions like tile_set_alpha and tile_set_depth have been removed/changed, and I can't seem to find any info on how to do it now in the documentation. Anyone know? Either way, thanks for reading. P.S. My end goal...
  9. S

    Legacy GM [SOLVED / FOUND BUG IN GM] Depth / Drawing order is not working properly

    Gamemaker is ignoring depth or drawing order, I have tried with using just the draw event of each object normally and also an object that does this in the End Step: with (all) depth = -bbox_bottom that didn't work so I also tried with a priority queue and populating it each frame and then...
  10. P

    Legacy GM [SOLVED] Depth problem - Image to demonstrate

    I think it's enough to see where is problem. So is there some easy way, maybe some kind of script...? to make it how it's supposed to be?
  11. MIWICP86

    GML beginner (SOLVED)

    Hi there, I'm completely new to programming and making games, have wanted to make one for a while and after seeing the Humble Bundle deal for GM last Autumn I decided to take the plunge and have a go. I have been following Heartbeasts "Beginner's Guide to making an RPG" and am still in the early...
  12. Stephen Cena

    Attempting card mechanics - Issue with depth & detection

    I've been tinkering with GMP & really enjoying it. Right now, I'm trying to make card mechanics (decks, tableau, etc). My issue is with a tableau. I have an obj_Stall which has both the sprite for the tableau as well as the ds_list of the cards in the tableau. My current collision detection is...
  13. m0zzy

    Legacy GM Depth problem.?

    Im trying to do the most Basic of things, and its not working.. Im trying to give the illusions of going down a tunnel by drawing a circle sprite on the screen but making it bigger with x + y_scale.. but im trying to put another sprite on top of it but its going underneath it so i cant see the...
  14. Jared Johnson

    3D SOLVED achieving depth with multiple d3d-primitives in one draw event

    Solved: I had some random drawing code in another object. Sorry for the mistake :V Lesson is: when implementing d3d, start by removing all drawing calls then introduce them in an organized fashion. EDIT: I"m having trouble recreating this problem in the FPS tutorial, soo i'll try and figure...
  15. D

    GMS 2 Depth issue

    I have an isometric/top down (zelda style) game I'm working on. I have (currently) 2 rooms. I'm using depth = -y; to control the depth of my characters. If I leave room1 to go to room2, it works fine. If I return to room1, it doesn't work anymore. Any ideas?
  16. Anixias

    Legacy GM Tiles break for 1 frame randomly

    In order to have lots of grass and not a lot of FPS drop, I had to swap from my drawing each blade of grass dynamically based on wind to creating a few straight grass blades in a background and just creating tons of tiles. It works. Each grass object just calls tile_add and uses a depth of -y...
  17. J

    GMS 2 my imported Game never made problems because of depth now I dont even have any backups [pls help]SOS

    SOLVED!!! THANKS EVERYONE!!! I added some new features to my game like some object effects and diffrent weapons but I didnt touch depth at all but this is what it showed me on the last test ....... ___________________________________________...
  18. mar_cuz

    Legacy GM Top down projectile

    Hi guys, I'm making top down game. I would like to make a projectile fly through the air and bounce when it hits the ground similar to how the soccer ball does in the below link. I have no idea how to make it bounce. How could I make it fly up in the air and then come back down and hit the...
  19. psyke

    Discussion Changing depth causes unexpected behavior

    So, I found something that is really bothering me, it might be a bug, I don't know. Look at this code: This code creates a new enemy and attachs it to the monster from the top, as you can see in the screenshot below: Everything was working fine in GM 1.4, but when I ported my game to GM 2...
  20. S

    Fatal Error on play

    Hey, I was messing around with a lot of things just now and I'm not sure what triggered it but now this error appears when I try to run my game. Sorry for the lack of information on what caused it, if you need any info just tell me what you need. If you can provide any insight on what the...
Top