tile collision

  1. MrLostProphet

    GMS 2.3+ 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...
  2. Marquitos3000

    GMS 2 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...
  3. 3

    GMS 2.3+ 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...
  4. 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...
  5. B

    GMS 2.3+ 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...
  6. MeltingCat

    GMS 2 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...
  7. 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...
  8. 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...
  9. Qing Donnie Yoshi

    GMS 2 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...
  10. Tofu Heavy Industries

    GMS 2 [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...
  11. A

    GMS 2 [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...
  12. B

    Basic Platformer player code with tiles instead of objects

    I need some code for basic player platformer movement, except instead of colliding with objects, he will collide with tiles. Please help. do i just replace (x, y, object) with x, y, "Tile layer")? I would really appreciate some help.
  13. flyinian

    Design [solved]Tile collision code not working but, its close. I can feel it.

    Hey all. I am currently attempting to get this tile collision to work but, haven't yet. However, i believe I managed to narrow what might be breaking the code for me. When I disable the "else" statements within the "if" statements the player collides with the tile and i am able to move left and...
  14. S

    tile colition fixing

    I was trying to make tile collision but some thing strange happens so i recorded it so you can see what is happening https://photos.app.goo.gl/V9m9Geda7s5QHkF4A so this is what i have for my collision code right now OBJ_player create//: tilemap = layer_tilemap_get_id("wall_colisin")...
  15. P

    GMS 2 [SOLVED] How does Gm:S2 assign tile IDs?

    SOLVED: For anyone wondering about the title question as well, tile IDs are assigned left to right, top to bottom, starting with value 0 in the upper-left corner. Title. I'm working on a tile-based collision system, and while I have all the movement and stopping code down, I need the part that...
  16. N

    Windows Need help with tile slope collison in a 2d platfromer

    Hello , am coding tile collision in my platformer and i used the tile collision code from heart beast's video and it's working fine, however i have absolutely no idea on how to do slope tile collision with that code , i have tried shaun spalding's method but it doesn't work for tiles that are...
  17. N

    GML Weird bouncing effect with tile collision

    Hi, am having a problem with tile collision and gravity in my 2d platformer i used the code from shaun spalding's video for tile collision and implemented gravity but whenever my character hits the floor, he starts bouncing non stop, it's driving me nuts, plz help. Here's the code for vertical...
  18. C

    GML [SOLVED] Help with Walking Tile Aging

    I need help with coding the steps for aging a tile when the player object moves out of the space of the tile instead of while it is inside. The tile uses 3 images to determine it's age. The player can only move through the tile twice before it flags a level failure and resets the whole room. Any...
  19. Gasil

    (SOLVED) Tile Collision.

    Hello, I seek some advice regarding Collision and Tiles, would you help me please? I'm using Shaun Spalding's Tile collision code in the tutorial on youtube; as far as I understood, you are checking the corners of the bounding box of the sprite to check if there is a collision with the tiles...
  20. wizen

    GML Problem with HeartBeast's Tile Collision System

    Hi, I've been having a small issue with (I think) HeartBeast's tile collision system in a 2D platformer environment, and I think I've found the place where it consistently fails, but I'd like some confirmation from someone a little more experienced than I am. The jist of it is that I've...
Top