3 Replies Latest reply on Aug 6, 2013 8:48 AM by Raffalaff

    How to check mouse position

    chino_10 Level 1

      Hi, i'm trying to do a drag and drop and validate it, now i have my drag and drop but i can't validate if i drag the correct answer to the correct place.

       

      Is there any chance to check the mouse position so when i'm draggin i can use sth like:

       

      if (mouseX == 50 && mouseY == 100){

           //my answer is correct

      } else {

      //ansewer incorrect

      }

       

       

      Please help me =)