Hello, I've seen many people use multiple strategies to tackle the issue of wall collision. In my case, I've used this code:
var _collision = false;
// horizontal collision going right
if (sign(hspd) == 1)
{
if (tilemap_get_at_pixel(collisionMap, x+hspd+(4*sign(hspd)), y))
{
x -= x mod 4...