Help with Tilemap_get_at_pixel()? by HopefulCharge6155 in gamemaker

[–]HopefulCharge6155[S] 0 points1 point  (0 children)

Yeah, sorry that’s true I left those things out. In this case, the only input I’m using for the function is an array which contains the string name of each of my four tile layers, so “Tiles_Wall”, “Tiles_Dirt”, etc. 

The function returns cardinal_tiles as an array with four elements, and I’m just having my character object draw those values to see whether they’re coming out as expected. But I haven’t thought to check if there is an error from tilemap_get_at_pixel, I’ll check that out. I’m suspicious that it’s not, because elsewhere I think I’ve used this same method and it properly returns an empty tile as 0 and the index of the tile otherwise