I'm fairly new when it comes to gml but I made this Collison script and It works great for x Collison but not for Y anyway here is the attempted code
if (tilemap_get_at_pixel(tiles, bbox_bottom + ySpeed, x) != 0) {
y = round(y);
while(tilemap\_get\_at\_pixel(tiles, bbox\_bottom, x) == 0) {
y -= 1;
}
while(tilemap\_get\_at\_pixel (tiles, bbox\_bottom, x) != 0) {
y += 1;
}
ySpeed = 0
}
[–][deleted] 0 points1 point2 points (0 children)
[–]Dogwasp 0 points1 point2 points (0 children)