This content has been marked as final. Show 2 replies
You could use MouseListener's for detecting when you're over a tile. For the String part, you have several options. You could create a Map that translates tiles into Strings. You could make your Tiles a separate class, with a String variable, so when you detect which tile is hovered over you can simply get the variable from that specific tile.
Yeah I assumed I could use MouseListeners, something along the lines of attaching a variable to each corner of each tile, just to get it's location on the screen. Then from there getting the numerical variable from the tile (only have 3 different tiles at the moment), then add a boolean to tell if I'm over the tile or not. I've been playing with that and haven't been about to see any results.