Computer Science Canada Battleship - SIMPLE DRAG + DROP HELP |
Author: | hez [ Sat May 31, 2003 6:32 pm ] |
Post subject: | Battleship - SIMPLE DRAG + DROP HELP |
in this part of my prog i want to drag the "minesweeper image" then i will figure out the rest can someone please tell me how to use drag and drop on an iamge in turing so i can figure out how to and where to place the ships thnx alot |
Author: | Tony [ Sat May 31, 2003 6:36 pm ] | ||||
Post subject: | |||||
well while dragging you're just making the picture follow the mouse
now once you exit the loop (press the button) you find nearest cell.
that should result in the closest cell if each is 10 pixels in size. Ex: X=100, then its 10th cell. |
Author: | hez [ Sat May 31, 2003 6:40 pm ] |
Post subject: | |
i'll see if it works thnx ummm exactky were amm i suppsoed to put it in my prog? |
Author: | Tony [ Sat May 31, 2003 7:13 pm ] |
Post subject: | |
while and after you drag |
Author: | hez [ Sat May 31, 2003 10:46 pm ] |
Post subject: | |
lol that drag mouse thing is hell so i just used the arrow keys (don't midn me plz)....... thnx |
Author: | Blade [ Sun Jun 01, 2003 12:40 am ] | ||
Post subject: | |||
well. i kinda whipped up an example that you could use. its fully documented... so heh..
|