Hey Guys!
I have a decent problem that I find difficult to solve due the possibilities provided by SFML.net yet.
Please have a look at this picture of the game:
As you can see there are HexFields on it. Actually every Hex is a sprite so the field wasnt really drawn onto the map itself due a specific reason. I want the sprites to act as magnetic objects to my Icon Transitions. So I can set new positions relative to the middle of each hexfield.
The problem which eruptes here is the rectangle containment of every Hex Sprite. I didn't read the documentation right and skipped the fact of the Contains() Method just provided for Rectangle Sprite Textures. Therefore even the "invisible" rectangle border is used.
One Major Problem that appears here in this case is when I try to click on a hexfield where the i.e. right lower edge of the hex above may be drawn over the other one...so when I think I clicked the chosen hexfield the icon actually moves to the one above due the fact that I really just clicked the containment rectangle of the above hex sprite.
Is there any way to only let the visible part being able to be clicked?
Even just a circle contains() method might work fine enough