Search found 2 matches
- Thu Oct 17, 2013 11:07 pm
- Forum: Support and Development
- Topic: Highlighting a gridsquare [SOLVED]
- Replies: 1
- Views: 2103
Re: Highlighting a gridsquare [SOLVED]
Ah solved it. Was a bit stupid and wasn't checking if the square was the same, so it kept returning false. Solved it with an extra elseif (I'll tidy it up later): function MouseOver() local x, y = love.mouse.getPosition() for row=1, #Grid do for square=1, #Grid[row] do local pgrid = Grid[row][square...
- Thu Oct 17, 2013 9:03 pm
- Forum: Support and Development
- Topic: Highlighting a gridsquare [SOLVED]
- Replies: 1
- Views: 2103
Highlighting a gridsquare [SOLVED]
Hello Lovers. I'll add here the usual disclaimer that I am brand new to Love, an amateur bra-fumbler with Lua, and a generally poor dressed individual. You'll have to forgive me any obvious errors here. So I've created a grid, and I want the grid square to be highlighted where ever the mouse is. So ...