When ___ is double tapped

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

  • Yesssss
  • Nu.

0 voters

Please no flag.

12 Likes

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.

5 Likes

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

5 Likes

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.

4 Likes

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

5 Likes

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

4 Likes

[^ 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]

10 Likes

@Rodrigo @Montoya @Liza @Maimouna

What do you think of this idea?

3 Likes

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

4 Likes

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

4 Likes

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

3 Likes

Yes. I still think it would be nice.

5 Likes

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

6 Likes

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

4 Likes

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

10 Likes

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.

3 Likes

Yeah :+1::+1:

1 Like

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:

4 Likes

Yes,I know, but it would be convenient.

3 Likes

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.

0 voters

3 Likes