Thread: Drag and Drop
View Single Post
  #9  
Old 08-04-2008, 06:53 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
hmm generally i'd use a while button in this case

HTML Code:
while (mousebuttons > 0) { //Mouse down
  Showimg[data]
}
if (mousex in |player.x - 5, player.x + 5| && mousey in |player.y - 5, player.y + 5|) {
  //drop the item
}
no need for a timeout, personal preference i suppose
Reply With Quote