Hexagon shaped sprite

Helloes!

I have a little issue that I can’t seem to solve. I want to have a square sprite trimmed to the shape of a hexagon. The thing is, though, i tried many things to do so. First, I wanted to simply remove some pixels from the sprite via code. The texture was not “readable” and, after changing the texture mode to “Advanced”, it was no longer a sprite (although could be readable). I also tried using masks, but to no avail.

So, can anyone help me with that?

One way would be to export your hexagonal sprite as a PNG with transparency activated. That way, the parts of the (square) image that don’t contain any data will be transparent. You’ll just need to create it with a graphics package that supports the export of PNG’s with transparency.