Hello all. I'm having a small issue with writing some code which will check if the mouse is hovering over a sprite within my game. The game i'm writing is a card game which deals with cards as sprites which are in stacks. I've developed the game so that when a player hovers over a small preview of the card on the table, a full size version of the card is shown in a preview window in the corner. The problem occurs with my hover checking code when two cards are stacked and only part of the card underneath is visible. I get flickering in the preview because the game is confused about which card to show since both are overlapping.
Does anyone have any ideas about a way to make a function which gets which card is underneath the mouse even if its only partially visible without it also returning all the cards beneath which are part of the stack of cards?
Thanks in advance guys, you always deliver!
Windows XP Home Ed. SP/2 ---> GeForce FX 5500 - 256MB
160 GB HD ---> 1 Gig RAM