Food overlaps with wall tiles, unreachable

im making a game where you collect food and then goes to a random position, only problem is sometimes it goes ontop of a wall tile, making it unreachable and i cant seem to find a sollution

There is a block in the tilemap extension that checks whether a location has a wall set on it:

Then you could say put this in a while loop and only break out of it if it’s not a wall.

thanks for the help!, i dont quite understand what you meant but i ended up fixing it with the “tile to center of sprite is” block, thanks though :slight_smile:

1 Like