Thread: Drag and Drop
View Single Post
  #11  
Old 08-04-2008, 06:58 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
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
You could eventually hit a loop limit; also, it would stop any other functions in that script.
__________________
Reply With Quote