When ___ is double tapped

ideas

#1

Hi!
Do you think that there should be a when ____ is double tapped block?

  • Yesssss
  • Nu.

0voters

Votes are public.

Please no flag.


#2

First and first!
Technically, you could make the same block with values, but having a when _______ is double tapped block would definitely make it easier.


#3

You could use values, and I think that with coding there should be some challenges. I don't think we need one ;)


#4

I personally prefer using values. If _____ is tapped increase value by 1. Check once if value = 2 draw a trail of color. And HS needs coding challenges because once you get into other forms of coding it won't be as easy as HS.


#5

A way u could make this is if u say if tapped rise value one and then wait like 2000 then increase value -1 so u have to double tap it kinda fast for whatever your trying to make work instead of tapping it once and then ten secounds later tapping it and it still working


#6

Like I'll go make a example then screen shot it for ok


#7

[^ when ipad is tapped
|[increase value 'tapped' by 1]
|end]

[^ when 7 = 7
|[^ check once if tapped > 2
||[set value tapped to 2]
||end]
|end]

[^ when tapped > 0
|[wait 400 miliseconds]
[^ check once if tapped > 0
|[set value tapped to 0]
|end]
end]

[^ when tapped > 1
[[[[whatever you want to happen when you double tap]]]]
[wait 400 miliseconds]
[set value tapped to 0]
end]


#8

@Rodrigo @Montoya @Liza @Maimouna

What do you think of this idea?


#9

Yes, but only for subscribers since it is possible already.


#10

Ok ok I know. You can make it with values. I thought it would be convinient, that's all.


#11

It would. But like I suggested for something which is free, it should be a subscriber only feature.


#12

Yes. I still think it would be nice.


#13

That would make it much easier to make "double-tapped" rules, so yes. You could email THT (The Hopscotch Team) about it!


#14

Really? Wow! I appreciate your appreciation!
(What? Lol)


#15

You can do it "by hand", even though it will take more code. It will need a counter.


#16

I thought it could be a cool feature. Maybe in the future, THT could implement it. Or you can make a video on it, your choice.


#17

Yeah :+1::+1:


#18

Here's a way to do it. Pretend you're trying to say, when :heart:️ is double tapped, say "I Love You!"
When :heart:️ Is Tapped:
Increase value <love> by 1


Whenever the :heart:️ is tapped, it will increase this value by 1.
As you tap again, it'll increase the value to 2.
This is how it senses a double tap. It can also sense a triple tap.
How would you do this?
Well, once you tap it three times, the value love will equal 3. See how you can code this to sense anything?
So:


When <love> = 2
Say, "I Love You!"
Wait # milliseconds
Set Value <love> to 0.


If you want this to keep sensing, you add a set value to 0 block again so you can start over the same process.
You're waiting because you don't want it to disappear right when love equals two.


Hope this helped! :grinning:


#19

Yes,I know, but it would be convenient.


#20

Maybe instead of "When ___ is double tapped", there should be a block that says "When ___ is tapped ___ times", allowing you to change the number of tappes required to make the action happen!

Who agrees? (Poll is private)

  • Yes, I completely agree.
  • Yes, I partially agree.
  • I have neutral feelings about it.
  • No, I partially disagree.
  • No, I completely disagree.

0voters