tile collision

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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.
  10. 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...
  11. 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")...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. H

    GMS 2 Tile collision slope speed Help.

    I've been using Shaun Spalding's tutorial for slopes tile collision. But I need some help with move speed while on the slope so it changes depending on the angle.
  19. H

    Tile or object collision?

    Should I be using tile collision or object collision? Pros and Cons of each?
  20. ShaunJS

    GMS 2 GameMaker Studio 2 - Tile collision + slopes

    GM Version: 2.0+ Target Platform: All Download: https://shaunjs.itch.io/shauns-platformer Summary: I wrote a system for making a tile based platformer with arbitrary slopes and paired it with a big tutorial video that demonstrates the slopes part and how it works. You can download the base...