• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

layers

  1. Daniel Mallett

    Help with tilemap assigning

    Ok this is a fairly streight forward question. I have a sprite sheet as a sprite which is attached to a tilemap. I have a tile layer attached to said tilemap. I set one of the cells in the map to something other than 0 so i can see it. So far so good. Now my question is how to do this...
  2. Adro

    Instance_create_depth issue

    Hi there, I'm new to GM and having a lot of fun, though I come across a small problem. I was originally using the following code to create bullets in an Asteroids clone following Shaun Spalding Youtube tut. --- event triggered by player pressing space bullet =...
  3. Erayd

    Shaders Creating a window to the player's location

    Here's the issue: In a pseudo 3D game (Zelda/golden sun), when a player walks in front of a tall building or cliff, the player then becomes invisible to the player. I want to find a way to communicate to the player in a fluid way, where the player is and what might be behind that wall when the...
  4. S

    GameMaker delete all objects within specific layer

    Hi all I am using the code below to delete all enemies within the layer "enemies" when the object containing this code is created. unfortunately there are 2 issues: - the first created enemy will not be deleted - the code deletes also some objects within other layers (this is really critical...
  5. A

    GML How to change layer of all instances of a specific object?

    I'm a beginner in Game Maker Studio 2 and I am trying to add a special feature to my game, but I just can't make it work fully, due to that the instances created by "room_instance_add" appear above every other instance in my room and I can't fix it completely with function "layer_add_instance"...
  6. B

    Design Dynamic Flashlight Lighting

    My friend and I are working on a thriller/survival horror esque game and we couldn't figure out if Gamemaker had a dynamic lighting system. So, we're trying to make our own. Our plan is to put the texture on one layer, add a layer of darkness, then have the flashlight pointer cut out the layer...
  7. HayManMarc

    Using #macro's for layer ID's?

    Hello programmers, I'm wanting to make my room layers easier for me to see and write (in my code) so I was going to use #macro's for this. But I'm not sure which way would be better. Do you? At first, I was going to do it like this, in the Create event of a control object (where I do all my...
  8. W

    GameMaker 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...
  9. R

    GameMaker Tiles and Tilesets

    GM Version: GMS 2 Target Platform: ALL Download: N/A Links: N/A Summary: Using tiles and tilesets to create seamless room graphics. I also cover room layers and layer depths using sprites and tiles. Tutorial:
  10. H

    Layers

    What is the purpose of using layers in game maker studio 2. Like I know what they do, but is there any reason for them other than organization?
  11. B

    Question - IDE Where did my layers go?

    I used to have a dock on the left with layer and room properties. This dock recently disappeared... I've been all over the settings and can't figure out how to turn it back on. It's not collapsed. I'm on a Mac, 2.1.1.241 Thanks in advance for your help. Rescue a noob?
  12. R

    Overlapping Objects and Drawing them.

    So i am really beginner in GM:S and i am trying to make game with stronghold like town building system and i am having trouble with placing buildings so the building that should be behind another one is actually in front of him while beaing over him? And also when i click the top object the...
  13. Y

    Legacy GM isometric tiles

    I'm making a rpg game (graphics style is kinda like pokemon) and the room is 15000x6000 to increase performance I changed most objects that don't collide with the player to tiles. but they are either in front or behind the player. I wanted to use -y in the layer depth but this isn't possible I...
  14. JAG

    GameMaker Prevent shadows from drawing in air

    Hi there Im making a game with a 3/4 perspective (or whatever you call the perspective super bomberman and LttP use). right now Im working on a floating island kind of thing, which the player can fall off. There is a shadow object being drawn under the player on its own layer; does anyone know...
  15. T

    Windows Solved : Background+Layers not loading when building. Reward 10USD if fixed.

    Hey Im using GMS2 full version on Windows 7 PC. i7 cpu 16gb ram 7970 gpu. Ive been using GMS2 since end of last year and this has never happened before. My game consists of about 20 rooms and less than 100 objects. When i build the game which i normally do 10-15 times every time im working on...
  16. J

    Game Design - Layer Struggle

    Hi, I'm creating a RPG game and I'm having this layer problem that you can see in the screenshots in the attachments, or push these links: https://prnt.sc/gkea4w https://prnt.sc/gkec11 I want the character to go behind the tree when he's above a certain point, and go in front of the tree when...
  17. R

    GameMaker Multi- Layer Sprite

    Hello people, I'm trying to make an rpg-like armor equipping system. So when you click on a piece of armor, it adds it onto your sprite. The purpose of doing it this way is so that I don't have to make a new sprite for every possible combination of armor and weapons. So, is there a way to...
  18. R

    GameMaker Layer Tile elements & dynamic depth.

    The plan is to emulate depth of assets in a top down view. This is done with objects by setting each objects depth to minus it's y value. depth = -y; So if an object is above another it shows up behind and and if below it shows up in front. Ideas for doing this with tiles and layers? My first...
  19. G

    Depth Issue

    GameMaker Studio 2 IDE v2.0.7.171 Runtime v2.0.7.110 My game is a top down 2.5D My player has up, down, left and right sprites My player holds a gun which is a seperate object. In the step event for the gun object, I have always had this code; if obj_player.sprite_index = spr_player_up{ depth...
  20. S

    GameMaker How to tackle disturbing the background?

    Morning all, I appreciate the title isn't the clearest so I will try to clarify. Goal: Player runs past a flaming torch and the fire flickers in response, directionally. Question: How would you implement that? My first thought was that I would place the torch on a lower layer and have...
Top