• 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!

tile collision

  1. MedicOnFire

    SOLVED Adding Interactable Entities / NPCs to Tile-Based Collision

    Hello! I am trying to create entities (things like signposts, NPCs the player could interact with, chests to open, etc.) in my game and I am struggling to implement their collision properties to let the player interact with them using a key press (like the Enter key or E key). For context on...
  2. C

    Can you create tile collisions using GML Visual (DnD)?

    I have been wanting to create collision with tiles and every tutorial is using code. This gets to confusing for me and was wondering if anyone knows how to do it with DnD or has seen a tutorial showing how to do it?. Also how many objects can game maker hold until we see problems. If I cant...
  3. Z

    Automatic tile collision

    I am making a survival game (tile based) but i cant find any info about a automatic tile collision system that matches the requirements so here are the requirements and if you got any idea of where to search or know how to do it ill be very happy to hear Requirements: Must work with tiles that...
  4. N

    GameMaker Why does game maker not have collision events for Tile Layers?

    Hi All Gamemaker allows you to create a collision event when an object collides with a different type of object. However, there does not seem to be any event equivalent for tiles (and hence I have to write my own logic for tile collisions). Does anyone know why this is the case? I am...
  5. Starrbar

    SOLVED Tile collision based on object origin instead of collision mask

    Just a heads up, I have found a solution! Thank you for prompting me to search elsewhere. If people are wondering, I decided to switch back to an older collision system I had used, which I believe was from a tutorial by Let's Learn This Together on YouTube. The previous collision code had...
  6. Pavel

    SOLVED Tilemap collision issue

    Hi, I have a strange issue with tilemaps collisions, I use the collision code from the Windy Woods Gamemaker template // This function checks if the instance is colliding with an object, or a tile, at the current // position + the given movement values (_move_x and _move_y). // The function...
  7. 01Warlock10

    SOLVED Collision For Right And Down Movements 1 Pixel Off.

    Hey so I'm using a tile based collision system, but for some reason collisions for right and down collisions are one pixel off, stopping one pixel before the solid tiles, but it works just fine for the left and up collisions, always stopping when it collides with the walls, does anyone know...
  8. 01Warlock10

    Precise Top Down 2D Tile Collisions in a Zelda-Like?

    Hey all, so I'm looking for a way to implement some Tile based collision into my gbc zelda inspired game. I'm sort of lost and would like a few tips and pointers on where to start, please and thank you. also, I'd like for my player's collision mask to not include his head. i'm doing this to add...
  9. C

    SOLVED Assigning Individual Traits to Individual Tiles

    I've been attempting to make a small scale RPG with different properties for differing tiles. Such as only walking on water after doing X event, or never be able to cross Y type of ground. However I'm failing to find a function that allows me to identify individual tiles within a tileset sprite...
  10. MrLostProphet

    Shaun Spaulding top down tile collision system help

    I've been following Shaun Spaulding's Action RPG GameMaker tutorial on youtube. In his third episode in the tutorial, he focuses on making a tile collision system. I've run into an issue where when my player object collides with something going to the right, the players position is reset to the...
  11. Marquitos3000

    GameMaker Tile Collision problem

    Hi, I´m making an RPG game and I use a tileset collision system. I have one tileset for the collision blocks and I have this in my character´s collision script: var _collision = false; //Tiles horizontales if (tilemap_get_at_pixel(collisionMap, x + hSpeed * 2, y)) { x -= x mod TILE_SIZE...
  12. 31Nf4ChZ4H73N

    Platformer - TileMap Collision Bugs

    Hey I am working on a Platformer Game and I have implemented GM Wolfs tutorial The first bug I ran into was that my player object which executed the code below in its Step event always got stucked and could not move. I though that this might be an mask related issue so I fixed this by...
  13. junixbr

    SOLVED Tile collision

    I'm having a hard time running a small tile collision system. The lateral (horizontal) collisions are perfect, the negative vertical collision too, but I cannot make the positive vertical collision work. I don't know if it has any influence, but the game has infinite scroll (the screen does not...
  14. B

    Trouble getting my head around tile-based Ceiling-Slope-Collision

    Hello everyone! I have tried for a couple of weeks now to get my platformer collisions to work properly in GMS2. I have followed both Mike Dailly's and Shaun Spaldings tutorial on the matter but they only ever create the floor Collision for sloped tiles, I need the ceiling tiles to work much...
  15. MeltingCat

    GameMaker Tile Collision only working sometimes

    Hi, I'm working on a top down game that uses tile collision to detect certain information about the floor the player is standing on. I have made a script for this using tile collision and it works just great - apart from in some rooms. There are certain rooms in my game where it seems to just...
  16. S

    Slope, tile collision, obj collision (help needed)

    How do I make tile collision and slopes work if the player is 32x32 while the tiles are 16x16? furthermore how can I design it to be functional with obj wall collision? I wanted to have slopes and stairs for my 2d platformer. I've been following Shaun Spalding's tutorial on tile collision and...
  17. F

    Can you make a world tile map from a single image and still use proper pixel collision?

    I have read and watched a lot on this topic, rebuilt the map and navigation system twice, and just want to know if the following is possible. I have a large water and land map designed in GIMP and would like to use it as the full backdrop. The game has minimal objects at this level, so I'm...
  18. Q

    GameMaker Tile Collision

    Excuse me sorry to bother but I need some assistance regarding tile collision. You see I'm trying to make a fan Pac-Man game but I'm struggling to make the tile walls solid for Pac-Man to get blocked by. Is there an easy way to make it so this doesn't happen again or is there a specific code for...
  19. T

    GameMaker [SOLVED] Trouble with object > tile collisions

    ok im having trouble with object > Tile collision in GM2. The player goes too far into the tile, once he walks into one, you can move out the opposite way but cant move up or down because hes a few pixels into the collision tile. I have a room, and it has a tileset layer called collision. in...
  20. A

    GameMaker [Solved]Need help. Collision with multiple objects in step event.

    Okay so I can't seem to find a solution that works so I might as well give it a shot here. Most of the code I used here is copied from some videos on youtube, and combined everything a bit to get the result I wanted. I wanted to make a game where you smoothly could move up and down slopes...
Top