oni0nJoin Date: 2012-11-04 Post Count: 2975 |
I refuse to use UserInputService; please elaborate on how to make a mouse event detect a double-tap. All I know is that it uses tick()
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
|
UIS:InputBegan
thing = thing + 1
if thing == 2 then
end
thing = 0
end
|
|
oni0nJoin Date: 2012-11-04 Post Count: 2975 |
"I refuse to use UserInputService"
..moron
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
darthpyroJoin Date: 2009-08-18 Post Count: 3569 |
Just pick a period of time and detect whether or not that time has passed since the last click. If it hasn't, it's >1 clicks.
|
|
oni0nJoin Date: 2012-11-04 Post Count: 2975 |
kthx ^
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
|
'"I refuse to use UserInputService"
..moron'
Right, you did say that. I guess we know who the moron is then. Both of you.
|
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
He's a moron for helping you with the correct api? And your not a moron for not using uis?
Somethings fish here... |
|
oni0nJoin Date: 2012-11-04 Post Count: 2975 |
I don't enjoy using UIS. Call me idiotic for using a deprecated method (keyboard input). I don't care. ktypls
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
|
Well he is just calling Happywalker a moron for being illiterate.
Being ignorant doesn't make you illiterate, so he isn't really a moron. He's just ignorant.
|
|
oni0nJoin Date: 2012-11-04 Post Count: 2975 |
you see, this is why i quit the scripters forum
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
|
Because too many people are illiterate?
|
|
darthpyroJoin Date: 2009-08-18 Post Count: 3569 |
Because it's full of children fighting over petty things that don't matter. Answer the question or do not.
|
|
|
oni0nJoin Date: 2012-11-04 Post Count: 2975 |
too many stuck-up nerds
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
|
Idk, if you're too lazy to learn a modern and superior method, who am I to disagree? Ignorance is bliss, and you have the freedom of decision.
|
|
|
If you don't feel like using UIS. Just go back to your Script Builder and ask there. |
|
oni0nJoin Date: 2012-11-04 Post Count: 2975 |
"too lazy to learn a modern and superior method"
Bah, UserInputService isn't superior, neither am I too lazy to learn it. I just prefer mouse events and keyboard inputs because they're much easier to use.
You've lost the meaning of 'deprecation' in this scenario. It means that it's been overwritten by another, more recent method; and will not be further update.
#code cout << "Truth shall sit upon the lips of a dying man" << endl; //Matthew Arnold |
|
|
It is indeed superior. It can get nearly any key on the keyboard, and it doesn't mix special keys with numbers like KeyDown does. InputBegan allows for gamepad control too, let's see KeyDown do that.
UserInputService in general allows for mobile stuff such as gyro sensors, gamepads, and VR stuff, making it already far superior.
|
|
AethexJoin Date: 2011-10-16 Post Count: 2193 |
@oni0n No further updates also means no further support. The other methods of gaining input are not guaranteed to still work, ever. ROBLOX could update and completely break KeyDown and KeyUp without worrying about having to fix them. |
|
|
Yes i'm ignorant to "f** uis" scripters |
|
|
"
'"I refuse to use UserInputService"
..moron'
Right, you did say that. I guess we know who the moron is then. Both of you.
"
All 3 of you are morons :O
One is illiterate
One is using outdated methods
One is arguing over something stupid
|
|
|
op doesn't want to learn anything
then how will you be better at scripting?KeyDown is old and breaks alot
Put this into a local script:
t = 0
game:GetService("UserInputService").InputBegan:connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Space then
t = t + 1
if t == 2 then
print (game.Players.LocalPlayer.Name.." has pressed space 2 times!")
end
wait(0.25)
t = 0
end
end)
That is an example.
This siggy is copyrighted ©
|
|