layers

  1. D

    Windows Placing Tiles in Rooms in GM:S 2

    Okay, I'm not exactly a noob here, but I can't figure out how to place tiles in the room using code. Now before you post anything, I'm not looking for how to do tile collisions here, just how to draw tiles in a room. If any of my code snippets are wrong below, please tell me. I've looked...
  2. G

    Question - Code Creating a Background Layer Draws Duplicate Sprite

    I was testing out dynamically creating background layers today, and I noticed a strange behavior. I don't know whether it's an error in my code, or a bug with GMS2. What happens is that the game draws a duplicate sprite. One of the sprites is properly centered around the layer x and y, and...
  3. J

    Question - Code layer_get_Xspeed routines

    layer_get_vspeed and layer_get_hspeed seem to always return 0. I'm working on adding delta timing to my project and was looking into how to dynamically update the vertical scrolling background layers. They seem to always return 0 for me. Anyone having similar issues? I'm using like this: var...
  4. S

     Room Editor

    The new Room Editor is awesome! That said, there's a few things I noticed but I'm not sure if anyone else has run into with questions(?) Background Layers have a handful of nice properties to adjust, but intuitively I didn't see a setting to adjust alpha/opacity. I discovered I had to click on...
  5. Cloaked Games

    iRandom Grapher

    Download the iRandom Grapher! https://drive.google.com/open?id=0B77J5CpjnWj3RkwxOUFNb1AxeW8 This is in off topic because it's a very specific topic and is probably only worth knowing about in very specific cases, however, it IS technically related to programming, in a way. I've been...
  6. 2

     Suggestion: Shift Selected Layers Button in Room Layers Tab

    I'd like a "shift selected layers" button that allow you to input xy coordinates for a relative shift of whatever layers are selected. Maybe after the create new asset layer button, and before the new folder button. In the room editor there doesn't seem to be any way to quickly accurately shift...
  7. B

    Question - Code Resolved### Problem displaying tiles with code

    There is something blocking my tiles, I've played with changing the depth of the layer I'm putting my tiles on, tried erasing the background but nothing seems to work, is this a bug or am I missing something obvious? two screenshot of the Background color changed and erased. my code layer_id...
  8. T

    Question - Code Question. External assets and drawing layers to surfaces.

    I'm still learning the ropes of GMS:2, so I apologise if these questions sound a little stupid. :oops: First question, is it possible to draw specific layers of any type to a surface? Reason i'm asking is because I want to try to add multiple shader effects to some layers, but not others. In...
  9. P

    Discussion Some questions about Layers

    Hello, I just bought GMS 2 today and I have some questions before porting my project into the new Game Maker. 1 - Are layers treated like resources? Do I need to destroy it (free from the memory) whenever I change the room? 2 - Is it a good practice to create all layers on the Room Start event...
  10. jackquake

    GMS2 Layers Issue (SOLVED)

    I'm having an issue with GMS2 and layers. No matter what I try, the ball object appears over the ship when colliding. I'd like the ball to be under the ship upon colliding. In the room, I have 2 layers defined: Ships: Depth 0 Balls: Depth 100 During creation of objects, they have been...
  11. c023-DeV

    Windows Tiles on layers below 0

    This one caused me quite a headache: The Image shows non-aligning tiles on a layer depth of -10000 (same with -100). It seems to be an issue with tiles on layers with negative depth, maybe? Because when I set that layer to 0 it works as desired. (Layers and tiles created through gm2 code)...
  12. mMcFab

    Discussion [GUIDE] Getting Started with Room Layers (mostly new GML functions)

    REMEMBER WHAT I SAID ABOUT TAKING OVER THE FORUM WITH MY GUIDES? ***NOTE: THIS GUIDE IS FOR THE BETA VERSION OF GAMEMAKER STUDIO 2. AS THE BETA CHANGES/UPDATES, SO MAY THIS GUIDE*** I AM NO LONGER UPDATING THIS PAGE. FURTHER UPDATES OF THIS GUIDE CAN BE FOUND ON MY WEBSITE Updated Guide Here...
  13. P

    Legacy GM Spawning Objects in room

    Hello GM Community... The humble bundle finally got me to start on a long-time desire of mine; building a game. I've programmed for years, but nothing in the realm of gaming and, obviously then, never in GML/GM:Studio. My first game I wanted to try and make was a "Sim Tower" like game.. It...
  14. C

    Show/hide objects according to depth OR assign objects to different layers...?

    This is an archaeology game where the player is presented with a grid of 64x64 objects. Destroying one of these objects reveals the object beneath it. Ideally each grid will be stacked approximately 5 objects deep. However, this quickly becomes unmanageable as there is no 'layer' function for...
  15. G

    Tiles Drawn from Different Backgrounds

    Okay so I've been developing my project for a while now and I basically have a very large map (10000 x 10000 pixels) with two views, one main view focusing on the player and a mini map drawn as a surface on the GUI layer. My entire background is tiled and what I now want to do is be able to...
  16. I

    Asset - Shaders TMC Terrain Tile

    TMC Terrain Tile Outputs: All Type: Shader Scripts Tiles Included: Shader, Scripts, Demo Sprites, Demo Objects and Demo Room Tested On: Windows Normal, Windows YYC, Android Normal, Android YYC (On Moto E) Marketplace: https://marketplace....mc-terrain-tile Description: TMC TERRAIN TILE...
Top