TileMap - Checking for click within a unique tile shape

Godot Version

4.2.1

Question

Hi all, I’m working on learning godot as an engine, and I’m planning on making an isometric game with mouse navigation. I’d like to add ramps, but they end up with a strange selection area. There are portions of the tile that I would like to be clickable that take up space in multiple adjacent tiles, so I’m looking for a way to detect if a ramp has an opaque pixel where the mouse was clicked. Does either TileSet or TileMap have something to check for that? Otherwise, are there good solutions for having a strangely-shaped tile?

1 Like