Hello, I hope this is the right forum to ask this, if not, I apologise.
I'm a freshman in programming and we have an assignment where we are to create a simple graphical restaurant layout. The user has to be able to draw squares representing tables, circles representing chairs, ... in a panel. This wasn't all to hard to create, however I also want the user to be able to move these objects around by dragging them with the cursor. However, I can't seem to figure out how to find out wether or not your cursor is actually on a piece of furniture or not.
Any help with this would be appreciated.
I'm a freshman in programming and we have an assignment where we are to create a simple graphical restaurant layout. The user has to be able to draw squares representing tables, circles representing chairs, ... in a panel. This wasn't all to hard to create, however I also want the user to be able to move these objects around by dragging them with the cursor. However, I can't seem to figure out how to find out wether or not your cursor is actually on a piece of furniture or not.
Any help with this would be appreciated.