4 registered members (ozgur, Ayumi, VHX, monarch),
1,161
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Mouse Click
#405339
07/28/12 13:17
07/28/12 13:17
|
Joined: May 2010
Posts: 41 İstanbul/Turkey
Sorrowful
OP
Newbie
|
OP
Newbie
Joined: May 2010
Posts: 41
İstanbul/Turkey
|
I want to do when I click once...
if(mouse_left==1)
{
var vurus1;
ent_animate(my,"5atak",vurus1,ANM_CYCLE);
vurus1 += 2 * time_step;
}
A8.40 Professional Sancak Oyun Ekibi
|
|
|
Re: Mouse Click
[Re: Sorrowful]
#405341
07/28/12 13:41
07/28/12 13:41
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Not enough information about what you want to get... But you might want to try something like this:
while(1)
{
if(mouse_left) // Left Mouse Button pressed
{
var vurus1 = 0;
while(vurus1 < 100)
{
ent_animate(my,"5atak",vurus1,ANM_CYCLE);
vurus1 += 2 * time_step;
wait(1);
}
while(mouse_left) wait(1); // Wait until mouse_left is released
}
wait(1);
}
POTATO-MAN saves the day! - Random
|
|
|
Re: Mouse Click
[Re: Sorrowful]
#405345
07/28/12 14:15
07/28/12 14:15
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
I cant believe this. Not enough information about what you want to get...
Like always see link below http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=404408#Post404408Thank you for wasting Espèrs, Kartofells and my time. Edit: Oh and thanks for the two identical threads.
Last edited by rayp; 07/28/12 14:30.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Mouse Click
[Re: rayp]
#405360
07/28/12 21:13
07/28/12 21:13
|
Joined: Apr 2008
Posts: 650
Sajeth
User
|
User
Joined: Apr 2008
Posts: 650
|
I cant believe this. Thank you for wasting Espèrs, Kartofells and my time. Edit: Oh and thanks for the two identical threads. I just read this to myself in a loud and angry voice and now I can't stop laughing.
Teleschrott-Fan.
|
|
|
|