![]() |
Mouse Functions...
Can anyone tell me (the commands) I would need to make it so if I clicked on a certain point in a level I could set a variable, such as:
display=1; |
You need the varuiables mousex and mousey, and the flag leftmousebutton
No commands are necesarry though :P |
Quote:
|
Quote:
|
I don't have NewFeatures 2002 with me, but is mousex the x coordinate of the mouse on the level, or on the screen?
|
Quote:
mousescreenx is screen. |
Quote:
|
if (hasweapon(grenade)&&weaponfired) showimg crosshiar.gif,mousex,mousey; this.grenade=1;
if (this.grenade==1&&leftmousebutton) putexplosion 1,mousex,mousey; :P He he. Would put an explosion where you click. I believe that would work. Haven't tested it b/c i'm @ school, but you could actually make it THROW a grenade if you wanted, requires more scripting, which is more time than i have ATM. ---Shifter |
Quote:
|
LOL, i need it to be if (this.grenade==1) timeout=0.05;
if (timeout&&this.grenade==1) then set the x's and y's of the mouse. Otherwise it wouldn't cycle through it. It would happen but once. ---Shifter |
Haha this stuff is awesome. You can do things like keeping people from right-clicking you to get your profile. Cool stuff.
|
| All times are GMT +2. The time now is 08:01 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.