tile

  1. S

    How to draw dynamic tile-based background?

    I have a room divided into lots (1000+) of square tiles, the tiles can be things like grass or dirt. The tiles are dynamic because if I have an explosion or something of the sort the grass tiles become dirt tiles. How can I draw these tiles while maximizing performance?
  2. J

    Mac OSX Room Editor TileBuilderLock Still Locked

    Hello Gamemaker Community, I am new to the community and learning by the day. Today I started with Tiles. I have create a level using the tiles, but these tiles are not visible when i try the game. While this happens the following text appears in my outputwindow: Room Editor TileBuilderLock...
  3. GonerBits

    SOLVED Is it possible to set the blend mode of a tile layer?

    In my game, I'd like to have an effect where there's a forest and there are gaps in the canopy that lets light fall through the leaves. It would help immensely if I could just create a tile layer that uses the "add" blend mode to light up the floor. Here is an example using a tileset that I...
  4. 0TastyPie0

    GMS 2.3+ Can't draw tiles in the room editor anymore

    I was fixing new stage defaults for my game, a room which I make child rooms from, then make stages from there. For some reason it won't let me draw tiles in certain areas, seems to be affecting any tile outside the default room's room dimensions. I tried looking around online, but I can't find...
  5. Reddoka

    SOLVED Player collision script doesn't work

    I coded it like the tutorial, but maybe of the different version, it's not working. It said that there is an unnecessary expression (-1) used as a statement, but if I remove the (-1) the tiles don't work propably (the _collision doesn't seem to work too). Thanks for helping, I really appreciate...
  6. TailBit

    SOLVED Tile collision rectangle

    I have seen the tile collision tutorial with slopes, pretty neat, but I've been trying to figure out how to detect where to end up when you will hit the ceiling, and I have more rectangular collision box.. For the first one, I did manage to figure out that I had to find the room between them on...
  7. L

    GML Getting Tilemap Without the Layer

    I'm putting in sound effects into my game currently and need a little help. I want to check which tilemap is below an object and based on that play a distinct sound. For checking which tilemap is below I'm using the tilemap_get_at_pixel function. The first parameter is tilemap_element_id, which...
  8. S

    GMS 2.3+ Platform game with classic RPG view from above : should the tiles of the room be made of objects?

    Hello everyone, I'm planning to make a platform game using a classic RPG view from above, so the player would use the 4 directional arrows to move left/right (x coordinate) forward/backward (y coordinate); but also the space bar to jump (pseudo-z coordinate). I however can't figure out how to...
  9. Queble

    2D Tile Collision help

    So I'm making a game where the player needs to collide with walls and stuff, right? I watched every tutorial online, but there are none that show what i want (a player that can collide with tiles using his bounding box) So I came up with this code, and the X dimension collisions work most of...
  10. Kezarus

    Autotiling by Code

    Good day to you! I did an autotile code but the end result is ugly AF. The pieces are on the right spot, btw. Here is the code: ///@definition bitmask_cell ///@param wx - coord x ///@param wy - coord y var wx = argument[0]; var wy = argument[1]; var cellSize = global.cellSize; var myTile =...
  11. Axl Trauts

    SOLVED Collision on tiled objects?

    Hi I have a flammable set of objects (children of parent par_flammable) that when they collide with an ignitier (i.e. a fire object) they start to burn and set a fire variable to 1. I also have a check that when a "fire = 1" flammable object collides with a "fire = 0" flammable object, it turns...
  12. P

    GMS 2 Auto Tile Path Maker

    I will be short cause I am almost sure this code should already exist but I can't just find it using google. So I need logic to make Computer count the shortest path from 1 tile to other including the diagonal movement and tile-based collisions.
  13. H

    GMS 2 Tiling Rectangles

    Pretty simple question, which I don't believe has a simple answer: How can I set tiles (using GML) in a given rectangle shape? Something like tilemap_set: tilemap_set_rectangle(tilemap_element_id,tiledata,cell_x1,cell_y1,cell_x2,cell_y2) I feel like something like this would be rather useful.
  14. C

    GMS 2 Problem with Tile collision when using speed + direction for movement.

    hi Gamemakers, Im having some real trouble with tile collision detection, I am using the Shaun Spalding Tile Collision tutorial and trying to addapt it for my own game (which is a little different from the game Shaun was working on). Basically my players Direction is determined by the...
  15. Cofefe

    GMS 2 Determining the Specific Tile From a Tileset

    So, suppose you were working on a tile collision engine. If you have a tileset with three tiles in it, is there a way you could use tilemap_get_at_pixel() to determine which specific tile from within that tileset it is at that pixel? I tried something with & tile_index_mask, but it didn't work...
  16. O

    GMS 2 Sending a map via internet.

    Lately I've been dabbling a bit in multiplayer coding and now I've come to a point where I'd like to have some help. The basic idea is that I generate a random map of 1024x1024 destroyable tiles. Now what I'm wondering is how to transfer this map to the players. The option that makes most sense...
  17. G

    Legacy GM Move collision problem

    Hi I create collision map by this code: global.mapsize=floor(room_width/32)*floor(room_height/32); for( yy=0;yy<room_height;yy+=32) { s=""; for( xx=0;xx<room_width;xx+=32) { i = (xx/32)+((yy/32)*(room_width/32)); global.map[i]=-1; t =...
  18. Suzaku

    GMS 2 Working with tile collisions

    Well Im starting to put my tilesets on my gamemaker project(2d platform game) but now I wonder how people actually deal with those tile colisions as they need to be an object for that purpose I think. I think about using the good and old "invisible scaled object" on a separated layer, but I want...
  19. C

    GML [SOLVED] Deactivate tiles not in camera view.

    Good evening guys and girls, Im having some issues trying to figure out how to Deactivate tiles outside of the camera View, I basically have a tiling object that draws in random tiles to the whole room (which is 20000x20000) this is basically killing the memory usage of the game So I was...
  20. S

    Game Mechanics what's the relation of the sprite size with the tile size?

    Hi, I've been new to this journey of making games. But in some tutorials on the internet I've heard some people talk superficially about this topic, when they always have their player sprite in the same size as their tiles. Is there any specific reason for that? Can I make a diferent size...
Top