down vote
favorite
I'm writing a little game for visual deficient people, but I'm having a hard time getting the mouse position. Let me explain :
I need to know where in the table the mouse cursor is, without having a click, and then I want to play a sound. That sound would be different for every position. Any thoughts? Thanks, in advance!
I tried with:
Code: Select all
mouse_x, mouse_y == get_Position()
if mouse_x and mouse_y == map[x][y] then
if map[x][y] == 0.1 then
Audio:play()