ID:266205
Sep 19 2001, 10:50 am
|
|
i have a Click proc where if you click on a mob it does something and if you dblclick on it it stops doing something, I want to make the dblclick into a click, but when i swithc it it wont work in the game.Any help would be appreciated.(hope i spelled that right)
|
In response to Skysaw
|
|
I have a slight idea on how he can do this.First make a Isdoingsomething var then do this:
mob/Dude icon='Dude.dmi' Click() if(usr.Isdoingsomething>=1) usr<<"You Stop Doing something" usr.Isdoingsomething=0 else usr<<"You start doing something" usr.Isdoingsomething=1 |
Hm, i dunno why dont you try making it so your dblclick does what your click does and your click do what the double click does? that way when you double click it will already called the cancel effect, then replace it with a new one? dunno just a suggestion
|
In response to WildBlood
|
|
WildBlood wrote:
Hm, i dunno why dont you try making it so your dblclick does what your click does and your click do what the double click does? that way when you double click it will already called the cancel effect, then replace it with a new one? dunno just a suggestion I fixed it. |
I have no idea what you actually want, but it might be important to note that click() is also called when you dblclick(). There isn't much you can do about that, without some extra coding comparing last clicked time and such.