Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Special Inputs?
- Thepicausno
-
61 posts
Special Inputs?
I wanted to make a game where you can double tap left or right to run, as well as other “Special Inputs” How can I detect if a player “Double Taps” a button or inputs a quarter-circle?
- footsocktoe
-
1000+ posts
Special Inputs?
I wanted to make a game where you can double tap left or right to run, as well as other “Special Inputs” How can I detect if a player “Double Taps” a button or inputs a quarter-circle?
But don't double tap the mouse since Windows detects that. Although, I don't know if it still does when you are running Scratch.
SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!
![](http://cdn2.scratch.mit.edu/get_image/project/114872457_40x30.png?v=1480629783.5)
![](http://cdn2.scratch.mit.edu/get_image/project/131940054_48x36.png?v=1480629783.5)
![](http://cdn2.scratch.mit.edu/get_image/project/165744146_60x45.png?v=1480629783.5)
![](http://cdn2.scratch.mit.edu/get_image/project/165490204_80x60.png?v=1480629783.5)
![](http://cdn2.scratch.mit.edu/get_image/project/84171322_100x80.png?v=1480629783.5)
![](http://cdn2.scratch.mit.edu/get_image/project/94044845_120x90.png?v=1480629783.5)
![](http://cdn2.scratch.mit.edu/get_image/project/169617648_132x99.png?v=1480629783.5)
- TheArcadeGuy
-
100+ posts
Special Inputs?
I wanted to make a game where you can double tap left or right to run, as well as other “Special Inputs” How can I detect if a player “Double Taps” a button or inputs a quarter-circle?
But don't double tap the mouse since Windows detects that. Although, I don't know if it still does when you are running Scratch.
Not everybody uses windows, so it really depends on the user.
![](http://cdn.scratch.mit.edu/scratchr2/static/__4a4a642210ad2fdc172b6a3967e00acf__/djangobb_forum/img/smilies/hmm.png)
The only way to see what it will do is to test it.
- Thepicausno
-
61 posts
Special Inputs?
If you're talking about double-clicking here is the solution.when green flag clicked
if <mouse down?> then
reset timer
wait until <not <mouse down?>>
repeat until <(timer) > [1]>
if <mouse down?> then
broadcast [User has double clicked]
end
else
end
Awesome! This should work for keys too, right??
Last edited by Thepicausno (Aug. 8, 2017 17:27:42)
- Discussion Forums
- » Help with Scripts
-
» Special Inputs?